lib/calabash/cli/helpers.rb in calabash-2.0.0.pre11 vs lib/calabash/cli/helpers.rb in calabash-2.0.0.prelegacy

- old
+ new

@@ -4,11 +4,12 @@ # @!visibility private module Helpers # @!visibility private HELP = { help: 'help', - :'generate-cucumber' => 'generate-cucumber', + generate: 'generate', + run: 'run [application] [cucumber options]', console: 'console [application]', version: 'version', setup_keystore: 'setup-keystore', resign: 'resign <apk>', build: 'build <apk>' @@ -32,24 +33,28 @@ No such command '#{key}' EOF else output.write <<EOF Usage: - #{Calabash::Utility.bundle_exec_prepend}calabash [options] #{HELP[key]} + calabash [options] #{HELP[key]} EOF end end # @!visibility private def print_usage(output=STDOUT) output.write <<EOF - Usage: #{Calabash::Utility.bundle_exec_prepend}calabash [options] <command-name> [command specific options] + Usage: calabash [options] <command-name> [command specific options] <command-name> can be one of #{HELP[:help]} [command] print help information. - #{HELP[:'generate-cucumber']} + #{HELP[:generate]} generate a Cucumber project folder structure. + + #{HELP[:run]} + runs Cucumber in the current folder with the environment needed. + the cucumber options will be passed unchanged to cucumber #{HELP[:console]} starts an interactive console to interact with your app via Calabash #{HELP[:version]}