diff --git a/features/cli_usage.feature b/features/cli_usage.feature index cd5758a..3903b5d 100644 --- a/features/cli_usage.feature +++ b/features/cli_usage.feature @@ -6,5 +6,5 @@ Feature: CLI usage Then the exit status must be 64 And the output must contain exactly: """ - Usage: producer [-v] [-n] recipe_file + Usage: producer [-v] [-n] [-t host.example] recipe_file """ diff --git a/lib/producer/core/cli.rb b/lib/producer/core/cli.rb index 6de1c24..c6c7fa3 100644 --- a/lib/producer/core/cli.rb +++ b/lib/producer/core/cli.rb @@ -3,7 +3,8 @@ module Producer class CLI ArgumentError = Class.new(::ArgumentError) - USAGE = "Usage: #{File.basename $0} [-v] [-n] recipe_file".freeze + OPTIONS_USAGE = '[-v] [-n] [-t host.example]'.freeze + USAGE = "Usage: #{File.basename $0} #{OPTIONS_USAGE} recipe_file".freeze EX_USAGE = 64 EX_SOFTWARE = 70