Fix CLI usage

This commit is contained in:
Thibault Jouan 2014-06-27 17:40:14 +00:00
parent a778322aa1
commit 0abb5f7ecd
2 changed files with 3 additions and 2 deletions

View File

@ -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
"""

View 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