Fix CLI usage
This commit is contained in:
parent
a778322aa1
commit
0abb5f7ecd
@ -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
|
||||
"""
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user