Skip to content

[QUESTION] How to setup verbose as an "incremental" option? #75

Description

@XSven

GetOpt::Long offers this

my $verbose = '';                     # option variable with default value (false)
GetOptions ('verbose+' => \$verbose); # Using --verbose on the command line will increment the value of $verbose

How can I do such a setup with MooX::Options?

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