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

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.

Allow negation of command line arguments using '--no'-prefix
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

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@sni

This comment has been minimized.

Copy link
Contributor

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
Projects
None yet
2 participants
You can’t perform that action at this time.