smsinabox 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/sms-credit +2 -2
- data/lib/smsinabox.rb +1 -1
- data/smsinabox.gemspec +1 -1
- metadata +1 -1
data/bin/sms-credit
CHANGED
|
@@ -31,8 +31,8 @@ BANNER
|
|
|
31
31
|
opts.on("-c", "--config=path/to/config", String,
|
|
32
32
|
"Path to alternate config file (defaults to ~/.smsinabox)") { |m| OPTIONS[:config] = m }
|
|
33
33
|
opts.on("--nagios", "Enable nagios mode") { OPTIONS[:nagios] = true }
|
|
34
|
-
opts.on("--warn=N", "Number of credit for warning, default 100 (nagios-mode only)") { |w| OPTIONS[:warn] = w }
|
|
35
|
-
opts.on("--critical=N", "Number of credit for critical, default 50 (nagios-mode only)") { |c| OPTIONS[:crit] = c }
|
|
34
|
+
opts.on("--warn=N", Integer, "Number of credit for warning, default 100 (nagios-mode only)") { |w| OPTIONS[:warn] = w }
|
|
35
|
+
opts.on("--critical=N", Integer, "Number of credit for critical, default 50 (nagios-mode only)") { |c| OPTIONS[:crit] = c }
|
|
36
36
|
opts.on("-h", "--help",
|
|
37
37
|
"Show this help message.") { puts opts; exit }
|
|
38
38
|
opts.parse!(ARGV)
|
data/lib/smsinabox.rb
CHANGED
data/smsinabox.gemspec
CHANGED