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

Global options #11

Open
apognu opened this issue Feb 22, 2018 · 1 comment
Open

Global options #11

apognu opened this issue Feb 22, 2018 · 1 comment

Comments

@apognu
Copy link

apognu commented Feb 22, 2018

I there a way, currently, to have a global option (program-wide), and subcommands that take options themselves?

Something like this:

$ myprogram -v list devices --filter=all

Here, -v can be placed on all subcommands. When I try using it, it cannot be followed by a subcommand.

Thanks.

@savonarola
Copy link
Contributor

Hello!

Currently no options/flags can precede subcommands.

«global» options are also unavailable, though they do not seem to be hard to implement.

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