diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-02-19 20:50:06 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-02-19 20:50:06 +0100 |
commit | 66593fd93c952fcd3c72e48d885578a8609606c1 (patch) | |
tree | cda77d0c7da53a2dea0cbb393101c32e8aee95d7 /main.py | |
parent | ff86144ccfae1387fb85d27fec71d6f128712169 (diff) | |
download | clufter-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.py | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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) |