Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12466 > unrolled thread

argparse: showing full help for subparsers

Started byChris Withers <chris@simplistix.co.uk>
First post2011-08-31 12:57 +0100
Last post2011-08-31 12:57 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  argparse: showing full help for subparsers Chris Withers <chris@simplistix.co.uk> - 2011-08-31 12:57 +0100

#12466 — argparse: showing full help for subparsers

FromChris Withers <chris@simplistix.co.uk>
Date2011-08-31 12:57 +0100
Subjectargparse: showing full help for subparsers
Message-ID<mailman.598.1314791833.27778.python-list@python.org>
Hi All,

If I have subparsers set up and do:

myscript.py --help

I get the summary for each of the top-level commands, but to get the 
help for each sub-command I have to do:

myscript.py subcommand --help

Is there any way I can get "myscript.py --help" to show the help 
hierarchically, including all options for all subcommands?

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web