-
-
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
Hiding auto generated help options? #542
Comments
I got around this issue by capturing the option out of if( process.argv.indexOf( '-x' ) !== -1 || process.argv.indexOf( '--surround-sound' ) !== -1 ) {
const position = process.argv.indexOf( '-x' ) !== -1 ? process.argv.indexOf( '-x' ) : process.argv.indexOf( '--surround-sound' );
process.argv.splice( position, 1 );
doTheThing();
}
Program.command().option().parse( process.argv ); Hope it helps |
This issue has not had any activity in over six months. It isn't likely to get acted on due to this report. I am closing this as duplicate of #242. Feel free to open a new issue if it comes up again, with new information and renewed interest. Thank you for your contributions. |
Commander v6.1 allows allows disabling the built-in help option: #1325 |
Not sure if this is possible, but it would be nice to tell commander to hide the auto-generated help menu.
So something like,
commander.hideDefaultHelp = true;
That way I can customize my own help menu, without having the auto generated version show up as well.
The text was updated successfully, but these errors were encountered: