lib/kumogata/argument_parser.rb in kumogata-0.1.2 vs lib/kumogata/argument_parser.rb in kumogata-0.1.3

- old
+ new

@@ -36,10 +36,18 @@ }, :export => { :description => 'Export a template from a specified stack', :arguments => [:stack_name] }, + :'show-outputs' => { + :description => 'Show outputs for a specified stack', + :arguments => [:stack_name] + }, + :'show-resources' => { + :description => 'Show resources for a specified stack', + :arguments => [:stack_name] + }, } class << self def parse!(&block) self.new.parse!(&block) @@ -95,9 +103,10 @@ $stderr.puts("#{e.message}") exit 1 end end + command = command.to_s.gsub('-', '_').to_sym [command, arguments, options] end private