summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-02-19 20:50:06 +0100
committerJan Pokorný <jpokorny@redhat.com>2014-02-19 20:50:06 +0100
commit66593fd93c952fcd3c72e48d885578a8609606c1 (patch)
treecda77d0c7da53a2dea0cbb393101c32e8aee95d7 /main.py
parentff86144ccfae1387fb85d27fec71d6f128712169 (diff)
downloadclufter-66593fd93c952fcd3c72e48d885578a8609606c1.tar.gz
clufter-66593fd93c952fcd3c72e48d885578a8609606c1.tar.xz
clufter-66593fd93c952fcd3c72e48d885578a8609606c1.zip
Allow more convenient way of specifying command parameters
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'main.py')
-rw-r--r--main.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/main.py b/main.py
index 361e600..452a83a 100644
--- a/main.py
+++ b/main.py
@@ -162,8 +162,15 @@ def run(argv=None, *args):
modify_group.set_title("Command options")
modify_group.set_description(None)
modify_group.add_options(opts_nonmain)
- parser.epilog = ("To list all available commands, use {0} --list"
- " (or --help)".format(prog))
+ parser.epilog = ("Arguments to value-based `command options' can be passed"
+ " without labels as long as the order wrt. parsing logic"
+ " is respected;"
+ " skipping arguments backed by default values otherwise"
+ " requiring specification there is allowed by syntactic"
+ " sugar: all can be passed as a single, first,"
+ " ::-delimited argument."
+ " To list all available commands, use {0} --list"
+ " (or --help).".format(prog))
#try:
# note that the parser carries opts and "Common options" group
ec = cm(parser, args)