Kouhei Sutou
null+****@clear*****
Mon Dec 29 17:21:24 JST 2014
Kouhei Sutou 2014-12-29 17:21:24 +0900 (Mon, 29 Dec 2014) New Revision: ace82fbc99f25682e49ba2e9cb5ac04935ab765b https://github.com/groonga/groonga/commit/ace82fbc99f25682e49ba2e9cb5ac04935ab765b Message: grndb: order commands Modified files: lib/mrb/scripts/command/grndb.rb Modified: lib/mrb/scripts/command/grndb.rb (+6 -6) =================================================================== --- lib/mrb/scripts/command/grndb.rb 2014-12-29 17:20:01 +0900 (7acbed5) +++ lib/mrb/scripts/command/grndb.rb 2014-12-29 17:21:24 +0900 (d9f61a8) @@ -42,24 +42,24 @@ module Groonga slop.banner = "Usage: #{command_name} COMMAND [OPTIONS] DB_PATH" slop_enable_help(slop) - slop.command "recover" do |command| - command.description "Recover database" + slop.command "check" do |command| + command.description "Check database" slop_enable_help(command) command.run do |options, arguments| run_command(options, arguments) do |database, new_arguments| - recover(database, options, new_arguments) + check(database, options, new_arguments) end end end - slop.command "check" do |command| - command.description "Check database" + slop.command "recover" do |command| + command.description "Recover database" slop_enable_help(command) command.run do |options, arguments| run_command(options, arguments) do |database, new_arguments| - check(database, options, new_arguments) + recover(database, options, new_arguments) end end end -------------- next part -------------- HTML����������������������������...Download