sensu-plugins / sensu-plugins-graphite

This plugin provides native Graphite instrumentation for monitoring, including: replication status, various Graphite data queries, mutators, and handlers
http://sensu-plugins.io
MIT License
22 stars 45 forks source link

Fix duplicate short option in check-graphite.rb #45

Closed boutetnico closed 7 years ago

boutetnico commented 7 years ago

Pull Request Checklist

No existing issue

General

Purpose

-d short option is used for 2 different options (acceptable_diff_percentage and data_points) which prevent using acceptable_diff_percentage in check-graphite.rb. This patch replaces -d with -Dwhich is an unused letter.

Known Compatablity Issues

No BC break as a check-graphite.rb -d previously referred to the data_points as it was defined later in the options definitions.

eheydrick commented 7 years ago

Good catch.