We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The negation of switches (and other types) is confusing if argv is strictly parsed.
Switch('--rawdump')->default(1),
and on the command-line: --no-rawdump results in $opt->get_rawdump to be still 1. (--no---rawdump would work but is a bit bizarre imho.)
--no-rawdump
$opt->get_rawdump
--no---rawdump
Switch('--rawdump|rawdump')->default(1),
Than the negation switch --no-rawdump works as expected.
Should be documented at least or throw an error for the not working negation switch --no-rawdump.
Just my 2 cents to an otherwise great module.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The negation of switches (and other types) is confusing if argv is strictly parsed.
Switch('--rawdump')->default(1),
and on the command-line:
--no-rawdump
results in$opt->get_rawdump
to be still 1. (--no---rawdump
would work but is a bit bizarre imho.)Workaround
Switch('--rawdump|rawdump')->default(1),
Than the negation switch
--no-rawdump
works as expected.TODO
Should be documented at least or throw an error for the not working negation switch
--no-rawdump
.Just my 2 cents to an otherwise great module.
The text was updated successfully, but these errors were encountered: