Skip to content

Commit

Permalink
Changed sort flag to not conflict with server
Browse files Browse the repository at this point in the history
  • Loading branch information
derekcollison committed Dec 22, 2011
1 parent 46d84b9 commit 01b1205
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
nats (0.4.22.beta.2)
nats (0.4.22.beta.3)
daemons (>= 1.1.4)
eventmachine (>= 0.12.10)
json_pure (>= 1.6.1)
Expand Down
4 changes: 2 additions & 2 deletions bin/nats-top
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require 'rubygems'
require 'json'

def usage
puts "Usage: nats-top [-s server_uri] [-m local monitor port] [-n num_connections] [-d delay_secs] [-s sort_by]"
puts "Usage: nats-top [-s server_uri] [-m local monitor port] [-n num_connections] [-d delay_secs] [--sort sort_by]"
puts "--sort_options for more help"
exit
end
Expand All @@ -28,7 +28,7 @@ opts_parser = OptionParser.new do |opts|
opts.on('-m local_port') { |port| $nats_port = port.to_i }
opts.on('-n num_connections') { |num| $num_connections = num.to_i }
opts.on('-d delay') { |delay| $delay = delay.to_f }
opts.on('-s sort_by') { |sort_key| $sort_key = sort_key }
opts.on('--sort sort_by') { |sort_key| $sort_key = sort_key }
opts.on('--sort_options') { sort_options_help }
opts.on('-h') { usage }
opts.on('--help') { usage }
Expand Down

0 comments on commit 01b1205

Please sign in to comment.