classification
Title: allow argparse subcommands to be grouped
Type: enhancement Stage: needs patch
Components: Library (Lib) Versions: Python 3.2
process
Status: open Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: bethard, eric.araujo
Priority: normal Keywords:

Created on 2010-07-23 12:17 by bethard, last changed 2010-07-23 12:40 by eric.araujo.

Messages (1)
msg111290 - (view) Author: Steven Bethard (bethard) * (Python committer) Date: 2010-07-23 12:17
[Moved from http://code.google.com/p/argparse/issues/detail?id=53]

It's currently not possible to have subcommands formatted in groups, e.g. instead of:

subcommands:
  {a,b,c,d,e}
    a          a subcommand help
    b          b subcommand help
    c          c subcommand help
    d          d subcommand help
    e          e subcommand help 

you should be able to get something like:

subcommands:
  group1:
    a          a subcommand help
    b          b subcommand help
    c          c subcommand help
  group2:
    d          d subcommand help
    e          e subcommand help
History
Date User Action Args
2010-07-23 12:40:30eric.araujosetnosy: + eric.araujo

resolution: accepted
versions: + Python 3.2
2010-07-23 12:17:29bethardcreate