Improve CLI usage:

* Rewrite arguments parsing with OptionParser;
* Allow processing of multiple recipes.
This commit is contained in:
Thibault Jouan committed 2014-09-26 19:06:10 +00:00
1 parent 85ee79ab88
commit 7a7c8379ff
4 files changed
+124 -90

No files matched your search

+6 -1
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
"""