-
Notifications
You must be signed in to change notification settings - Fork 66
Added ignore option #27
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
Conversation
adamreisnz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @kodie, thanks for the PR! Could you please address the two comments? Rest looks good!
|
|
||
| //Get from/to parameters from CLI args if not defined in config file | ||
| if (typeof from === 'undefined') { | ||
| from = argv._.shift(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to use shift here because we can't be sure of the index. For example, from might be defined in the config already, and then it's not shifted, but then to will be in position 0.
bin/cli.js
Outdated
| //Get files | ||
| if (!files) { | ||
| files = argv._; | ||
| files = argv._[2]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also a breaking change, people might rely on this functionality.
I would prefer to not pass the ignore files via the CLI but rather use the config file, or a named parameter, e.g. --ignore
|
@adamreisnz How's that? |
adamreisnz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks! I'll merge it in shortly.
Solves Issue #26.