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

centralized handling of global flags #719

Closed
timoxley opened this issue Nov 27, 2016 · 2 comments
Closed

centralized handling of global flags #719

timoxley opened this issue Nov 27, 2016 · 2 comments

Comments

@timoxley
Copy link

I want to be able to define a few flags that work no matter what command is used. It's possible to define them as .global, but there doesn't appear to be a way to have the argument handled globally.

use case: I want to add a --printConfig flag which pretty-prints the current configuration being used, for whatever command is being run, then process.exits without actually running the command.

@bcoe
Copy link
Member

bcoe commented Nov 28, 2016

@timoxley this sounds like it would be addressed by having a default command handler? something which we've talked about.

@timoxley
Copy link
Author

@bcoe thanks

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