optimus icon indicating copy to clipboard operation
optimus copied to clipboard

Global options

Open apognu opened this issue 7 years ago • 1 comments

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.

apognu avatar Feb 22 '18 13:02 apognu

Hello!

Currently no options/flags can precede subcommands.

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

savonarola avatar Feb 22 '18 18:02 savonarola