-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
short switches don't take numeric arguments #395
Comments
The same issue. |
This is a bug in the Command.prototype.normalize method |
This issue will be partially resolved when v3.0.0 is released. Available now as a prerelease. See #1001 Support for passing option directly with short flags is added for recognised options (but not for options for subcommands with executable file as handler.) |
Support for directly appending values to short options has shipped in v3 (thanks @TheRoSS): https://github.com/tj/commander.js/releases/tag/v3.0.0 As per previous comment, currently only working for action handler based subcommands. |
in minimist (or
tail
for that matter),-n10
setsn
(or the switch it aliases) to10
.A similar call with
commander
setsn
(or the switch it aliases) to-1
. This seems to mean a minimist to commander rewrite forces a CLI change, i.e. a cronjob that previously calledfoo -n10
will stop functioning properly iffoo
is upgraded from the minimist version to the commander version.Is there a workaround? Am I mistaken?
The text was updated successfully, but these errors were encountered: