lib/wookie/cli.rb in wookie-translator-0.1.0 vs lib/wookie/cli.rb in wookie-translator-0.1.1

- old
+ new

@@ -40,12 +40,12 @@ # # @param [Array] argv The command line arguments (`ARGV` is substituted, if `nil`). def initialize(argv) @argv = argv || ARGV @options = { - use_stdin: false, - dialect: :simple + :use_stdin => false, + :dialect => :simple } OptionParser.new do |opts| opts.banner = "Usage: wookie [options] string\n wookie [options] -" opts.separator "" opts.separator "Common Options" @@ -81,9 +81,9 @@ string = if @argv.include?('-') ARGF.read else @argv.join(' ') end - t = Wookie::Translator.new(dialect: dialect) + t = Wookie::Translator.new(:dialect => dialect) puts t.send(@options[:translation], string) end end \ No newline at end of file