Skip to content
New issue

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

Allow negation of command line arguments using '--no'-prefix #13

Merged
merged 1 commit into from
Nov 20, 2016

Conversation

mstock
Copy link
Contributor

@mstock mstock commented Nov 19, 2016

Getopt::Long supports negatable boolean options by appending an ! to the option specification, so this allows to use this functionality with Monitoring::Plugin::Getopt as well. This actually already kind-of worked, but with not very useful help output and the way one had to access the option value depended on if the option was passed on the command line or not.

Getopt::Long supports negatable boolean options by appending an '!' to the
option specification, so this allows to use this functionality with
Monitoring::Plugin::Getopt as well.
@sni sni merged commit c039436 into monitoring-plugins:master Nov 20, 2016
@sni
Copy link
Contributor

sni commented Nov 20, 2016

Thanks, merged. This is how all pull requests should look like. Much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants