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

main options intertwine with command options #598

Closed
joelharkes opened this issue Dec 21, 2016 · 2 comments
Closed

main options intertwine with command options #598

joelharkes opened this issue Dec 21, 2016 · 2 comments

Comments

@joelharkes
Copy link

for example have the following setup

program
    .option('-v --verbose', 'show verbose logging')
program
    .command('release')
    .option('-v --version <version>', 'version of the release')

if I execute my command with

myBin release -v 1.0.0

then program.verbose = true, although i expect it to be false.

i expect it to be true when: myBin -v release (see difference in order).

@shadowspawn
Copy link
Collaborator

The global options can come before or after the command, so there is a conflict between the two uses of -v.

This issue has not had any activity in over six months. It isn't likely to get acted on due to this report.

Feel free to open a new issue if it comes up again, with new information and renewed interest.

Thank you for your contributions.

@shadowspawn
Copy link
Collaborator

Pull Request opened to add .enablePositionalOptions() and .passThroughOptions(): #1427

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