Improve CLI usage:

* Rewrite arguments parsing with OptionParser;
* Allow processing of multiple recipes.
This commit is contained in:
Thibault Jouan
2014-09-26 14:16:26 +00:00
parent 85ee79ab88
commit 7a7c8379ff
4 changed files with 124 additions and 90 deletions

View File

@@ -6,5 +6,10 @@ Feature: CLI usage
Then the exit status must be 64
And the output must contain exactly:
"""
Usage: producer [-v] [-n] [-t host.example] recipe_file
Usage: producer [options] [recipes]
options:
-v, --verbose enable verbose mode
-n, --dry-run enable dry run mode
-t, --target HOST target host
"""