-
-
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
Impossible to customise descriptions of --help and --version options #473
Comments
This is probably never gonna be looked-at, if this package's recent traction is anything to go by. Have taken it upon myself to develop a simpler and more hands-on alternative instead: Thanks anyway. =) Will leave this open in case somebody does feel like it warrants actioning. |
+1 |
You could always do: var Command = require('commander').Command;
Command.prototype.helpInformation = function() {
return "My help information!!"
};
/* Do stuff with Command */ |
Haha, maybe. :D Too late now, though. Really happy with how this turned out. =) |
Duplicate of #471 . Think we'll have to check out your project :-) This is just way too buggy. |
This issue has not had any activity in over six months. It isn't likely to get acted on due to this report. The issue author has done their own approach, and there are other issues covering this area such as #47. Feel free to open a new issue if it comes up again, with new information and renewed interest. Thank you for your contributions. |
This issue will be resolved when v3.0.0 is released. Available now as a prerelease. See #1001 |
Support for customising the version and help descriptions has shipped in v3 (thanks @idmontie): https://github.com/tj/commander.js/releases/tag/v3.0.0 |
Say I wanted to use a different wording for the
--version
or--help
options in the auto-generated help output:... I can't. Specifying
--help
prevents the--help
option from even doing anything, and specifying--version
just duplicates the option in the--help
output:Shouldn't there be a way of overriding those two option descriptions? Some users might wish to use a different wording, or at least correct the capitalisation.
The text was updated successfully, but these errors were encountered: