From 66593fd93c952fcd3c72e48d885578a8609606c1 Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Wed, 19 Feb 2014 20:50:06 +0100 Subject: Allow more convenient way of specifying command parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- main.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'main.py') 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) -- cgit