Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > argparse: showing full help for subparsers

Reply
Thread Tools

argparse: showing full help for subparsers

 
 
Chris Withers
Guest
Posts: n/a
 
      08-31-2011
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nested subparsers with argparse Chris Withers Python 1 08-23-2010 02:21 PM
Re: nested subparsers with argparse Chris Withers Python 0 08-23-2010 02:19 PM
Sh Crypto isakmp sa is showing Active but Tunnel is showing line protocol down. urvin Cisco 0 04-15-2008 08:17 AM
ASP 1.1: DataGrid - Showing/Not Showing Buttons Ray Booysen ASP .Net 2 03-28-2006 02:49 PM
Datagrid: Showing numbers in full and not in 'Standard Form' arun.hallan@gmail.com ASP .Net 1 01-06-2006 04:53 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57