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

cannot name an option "version" #98

Closed
jasonsirota opened this issue Jul 20, 2017 · 1 comment
Closed

cannot name an option "version" #98

jasonsirota opened this issue Jul 20, 2017 · 1 comment

Comments

@jasonsirota
Copy link

I want to specify a string option named "--version" but because of the default version option, it will not let me override it (as far as I can tell). I can submit a patch if this isn't supported.

@ntwcklng
Copy link
Collaborator

Hey jasonsirota,

you can set the version in the config to false and create an option named version. e.g.

const args = require('args')

args.option('version', 'description')

const flags = args.parse(process.argv, {version: false})

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