Skip to content

Global options #11

@apognu

Description

@apognu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions