argparse: showing full help for subparsers

Discussion in 'Python' started by Chris Withers, Aug 31, 2011.

  1. 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
    Chris Withers, Aug 31, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Samuel R. Neff
    Replies:
    2
    Views:
    574
    bradley
    Jun 10, 2005
  2. Replies:
    1
    Views:
    507
    Siva M
    Jan 6, 2006
  3. Chris Withers

    nested subparsers with argparse

    Chris Withers, Aug 23, 2010, in forum: Python
    Replies:
    1
    Views:
    439
    Peter Otten
    Aug 23, 2010
  4. Chris Withers

    Re: nested subparsers with argparse

    Chris Withers, Aug 23, 2010, in forum: Python
    Replies:
    0
    Views:
    454
    Chris Withers
    Aug 23, 2010
  5. Replies:
    1
    Views:
    157
    Ken Bloom
    May 28, 2007
Loading...

Share This Page