lib/gizzmo.rb in gizzmo-0.1.4 vs lib/gizzmo.rb in gizzmo-0.2.0

- old
+ new

@@ -44,10 +44,21 @@ opts.banner = "Usage: #{$0} subtree SHARD_ID" end, 'delete' => OptionParser.new do |opts| opts.banner = "Usage: #{$0} delete SHARD_ID_TO_DELETE [MORE SHARD_IDS]" end, + 'addforwarding' => OptionParser.new do |opts| + opts.banner = "Usage: #{$0} addforwarding TABLE_ID BASE_ID SHARD_ID" + end, + 'forwardings' => OptionParser.new do |opts| + opts.banner = "Usage: #{$0} show [options]" + + opts.on("-t", "--tables=IDS", "Show only the specified table ids (comma separated)") do |table_ids| + subcommand_options.table_ids ||= [] + subcommand_options.table_ids += table_ids.split(",").map { |s| s.to_i } + end + end, 'unwrap' => OptionParser.new do |opts| opts.banner = "Usage: #{$0} unwrap SHARD_ID_TO_REMOVE [MORE SHARD_IDS]" end, 'find' => OptionParser.new do |opts| opts.banner = "Usage: #{$0} find [options]" @@ -107,9 +118,13 @@ end end opts.on("-L", "--log=LOG_FILE", "Path to LOG_FILE") do |file| global_options.log = file + end + + opts.on("-f", "--force", "Don't display confirmation dialogs") do |force| + global_options.force = force end end # Print banner if no args if ARGV.length == 0 \ No newline at end of file