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

Option to disable default global help and version flags #16

Closed
plexigras opened this issue Mar 9, 2018 · 3 comments
Closed

Option to disable default global help and version flags #16

plexigras opened this issue Mar 9, 2018 · 3 comments

Comments

@plexigras
Copy link
Contributor

i would like to be able to only conditionally display the help which is currently not possible.

cac/src/Cac.js

Lines 31 to 39 in 03822fc

this.option('version', {
alias: 'v',
type: 'boolean',
desc: 'Display version'
}).option('help', {
alias: 'h',
type: 'boolean',
desc: `Display help (You're already here)`
})

@egoist
Copy link
Collaborator

egoist commented Mar 9, 2018

We can add an option help here:

cac/src/Cac.js

Line 19 in 03822fc

constructor({ bin, pkg } = {}) {

Maybe add one for version too 😄

@egoist
Copy link
Collaborator

egoist commented Mar 9, 2018

btw in which case you don't want to show help when a flag like --help appears?

@plexigras
Copy link
Contributor Author

plexigras commented Mar 9, 2018

i just want to have custom help for subcommands.

i can make a pr 😄

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

No branches or pull requests

2 participants