lib/cuukie/cli.rb in cuukie-0.2.2 vs lib/cuukie/cli.rb in cuukie-0.3.0

- old
+ new

@@ -22,25 +22,25 @@ result.compact! end def to_options_hash(options) result = { :cuukieport => 4569 } - [:server, :showpage, :nowait, :keepserver].each do |opt| + [:server, :showpage, :nowait, :keepserver, :help].each do |opt| result[opt] = false end OptionParser.new do |opts| opts.banner = "cuukie #{::Version}\nUsage: cuukie [options] [cucumber-options]" opts.on("--cuukieport PORT", Integer, "Start the server on PORT") {|port| result[:cuukieport] = port } opts.on("--server", "Run as a server") { result[:server] = true } opts.on("--showpage", "Open the features in the default browser") { result[:showpage] = true } - opts.on("--nowait", "Don't wait for keypress on exit") { result[:nowait] = true } + opts.on("--nowait", "Don't wait for ENTER on exit") { result[:nowait] = true } opts.on("--keepserver", "Leave the server running on exit") { result[:keepserver] = true } opts.on_tail("-h", "--help", "You're looking at it") do puts opts.help - return {} + result[:help] = true end end.parse! options result end end