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

- old
+ new

@@ -4,12 +4,11 @@ # @!visibility private module Helpers # @!visibility private HELP = { help: 'help', - generate: 'generate', - run: 'run [application] [cucumber options]', + :'generate-cucumber' => 'generate-cucumber', console: 'console [application]', version: 'version', setup_keystore: 'setup-keystore', resign: 'resign <apk>', build: 'build <apk>' @@ -33,28 +32,24 @@ No such command '#{key}' EOF else output.write <<EOF Usage: - calabash [options] #{HELP[key]} + #{Calabash::Utility.bundle_exec_prepend}calabash [options] #{HELP[key]} EOF end end # @!visibility private def print_usage(output=STDOUT) output.write <<EOF - Usage: calabash [options] <command-name> [command specific options] + Usage: #{Calabash::Utility.bundle_exec_prepend}calabash [options] <command-name> [command specific options] <command-name> can be one of #{HELP[:help]} [command] print help information. - #{HELP[:generate]} + #{HELP[:'generate-cucumber']} 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]}