Skip to content

Commit

Permalink
Merge pull request #43 from phrawzty/touch_help
Browse files Browse the repository at this point in the history
move perf_splitter position in help output
  • Loading branch information
phrawzty authored Jan 22, 2019
2 parents 11020e3 + 3e6b904 commit b4384d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions check_http_json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -361,16 +361,16 @@ def parse_args(options)
options[:result_string_crit] = x
end

options[:perf_splitter] = ','
opts.on('--perf_splitter CHARACTER', 'Specify an alternative character to split performance keys.') do |x|
options[:perf_splitter] = x
end

options[:perf] = nil
opts.on('-p', '--perf ELEMENT', 'Output additional fields (performance metrics); comma-separated.') do |x|
options[:perf] = x
end

options[:perf_splitter] = ','
opts.on('--perf_splitter CHARACTER', 'Specify an alternative character to split performance keys.') do |x|
options[:perf_splitter] = x
end

options[:timeout] = 5
opts.on('-t', '--timeout SECONDS', 'Wait before HTTP timeout.') do |x|
options[:timeout] = x.to_i
Expand Down

0 comments on commit b4384d6

Please sign in to comment.