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

A way to override the version and help message #47

Closed
jeromedecoster opened this issue Jan 31, 2012 · 6 comments
Closed

A way to override the version and help message #47

jeromedecoster opened this issue Jan 31, 2012 · 6 comments

Comments

@jeromedecoster
Copy link

Hello,

It can be nice to have the possibility to modify the default version message 'output the version number'
and the default help message 'output usage information'

Thanks

@fegemo
Copy link

fegemo commented May 22, 2015

+1 to this

@digitalsadhu
Copy link

+1

@zhiyelee
Copy link
Collaborator

Sound good. PR on this is welcome

@hb20007
Copy link

hb20007 commented Jan 29, 2019

It would also be nice to be able to override error messages, e.g., for custom formatting of messages like error: missing required argument 'name'.

idmontie pushed a commit to idmontie/commander.js that referenced this issue May 16, 2019
Close tj#47.

Add override for the help message by calling program.help(message).

Add override for the version message by calling
program.version(version, flag, message);
idmontie pushed a commit to idmontie/commander.js that referenced this issue Jun 25, 2019
Close tj#47.

Add override for the help message by calling program.help(message).

Add override for the version message by calling
program.version(version, flag, message);
@shadowspawn
Copy link
Collaborator

This issue will be resolved when v3.0.0 is released. Available now as a prerelease. See #1001

@shadowspawn
Copy link
Collaborator

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

Closing the oldest open bug. Woop!

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

Successfully merging a pull request may close this issue.

6 participants