Skip to content

[Ftr] Support repetition for flags ? e.g. ansible style verbose: -v / -vv / -vvv #154

@ieugen

Description

@ieugen

Is your feature request related to a problem? Please describe.

I would like to implement verbose levels with repetition of the same flag.
Something like it's done in ansible: ANSIBLE_DEBUG=true -vvvv ansible-playbook playbook.yml

Describe the solution you'd like

I would like to build a cli app to have an option for verbose level - with the ability to supply it multiple times:

{:as "Verbose level - multiple versions"
                   :short "v"
                   :option "verbose"
                   :multiple true
                   :type :with-flag}

Describe alternatives you've considered
This is available in tools-cli

["-v" nil "Verbosity level"
    :id :verbosity
    :default 0
    :update-fn inc]

If this is available in the library, I could not find it in the README .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions