Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to include another input option --paterrn <pattern> #11

Closed
sujaikumars opened this issue May 8, 2020 · 1 comment
Closed

Request to include another input option --paterrn <pattern> #11

sujaikumars opened this issue May 8, 2020 · 1 comment

Comments

@sujaikumars
Copy link

Hi Njanakiev,

First of all thanks for useful module. I just wanted to propose an improvement to this. Could we please add a option to restrict the stats on files that has specific extension?

Reasoning is that, often people are interested in getting the stats on specific file extensions rather than all the files in specific folder. If this option is present it would be helpful.

Something like this would be helpful.

Note: I can submit a PR if you wish. Thanks.

parser.add_argument('-e', action='store_true',
dest='extension', default=False,
help='restrict the stats on file extension',
required=False)

Thanks & regards,
Sujaikumar

@njanakiev
Copy link
Owner

Thanks for the suggestion @sujaikumars! This is indeed a good addition! I've added it and also added excluding of particular file names as an option in the new 0.4.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants