lib/perfmonger/cli.rb in perfmonger-0.6.1 vs lib/perfmonger/cli.rb in perfmonger-0.7.0
- old
+ new
@@ -38,16 +38,20 @@
## make list of subcommands
commands = @@commands.values.sort_by do |command|
# important command first: sort by [priority, name]
command_name = command.command_name
case command_name
- when "record"
+ when "live"
[0, command_name]
- when "stat"
+ when "record"
[1, command_name]
- when "plot"
+ when "play"
[2, command_name]
+ when "stat"
+ [3, command_name]
+ when "plot"
+ [4, command_name]
else
[999, command_name]
end
end
@@ -69,9 +73,10 @@
subcommand_list = <<EOS
Commands:
#{command_list_str}
+
EOS
parser.summary_indent = " "
parser.on('-h', '--help', 'Show this help') do