bin/bowler in qipowl-0.9.0 vs bin/bowler in qipowl-0.9.1

- old
+ new

@@ -10,11 +10,11 @@ OptionParser.new do |opts| opts.banner = "Usage: #{$0} FILE|STRING" # Bowl result? opts.on("-a", "--action ACTION", [:bowl, :ruby, :cmd, :yaml, :html], - "Action to apply on input (bowl, ruby, cmd, yaml, html); default: html") do |action| + "Action to apply on input (bowl, html); default: html") do |action| options[:action] = action || :bowl end # No argument, shows at tail. This will print an options summary. opts.on_tail("-h", "--help", "Show this message") do @@ -29,16 +29,8 @@ file_or_string = File.read(file_or_string) if File.exist?(file_or_string) case options[:action] when :bowl puts file_or_string.bowl -when :ruby - puts Qipowl::Mapping.new(nil, file_or_string).to_ruby -when :html - puts Qipowl::Html.parse file_or_string -when :cmd - puts Qipowl::Cmd.execute file_or_string -when :yaml - puts Qipowl::Yaml.parse file_or_string else puts Qipowl::Html.parse file_or_string end \ No newline at end of file