producer-core/features/cli_usage.feature
Thibault Jouan 7a7c8379ff Improve CLI usage:
* Rewrite arguments parsing with OptionParser;
* Allow processing of multiple recipes.
2014-09-26 19:06:10 +00:00

16 lines
447 B
Gherkin

Feature: CLI usage
@exec
Scenario: prints the usage when an argument is missing
When I run `producer`
Then the exit status must be 64
And the output must contain exactly:
"""
Usage: producer [options] [recipes]
options:
-v, --verbose enable verbose mode
-n, --dry-run enable dry run mode
-t, --target HOST target host
"""