nested subparsers with argparse

Chris Withers chris at
Mon Aug 23 15:16:14 CEST 2010

Hi All,

I'm looking to build a script that has command line options as follows:

./ command subcommand [options]

I can do up to the command [options] bit with add_subparsers in 
argparse, but how do I then add a second level of subparsers?



More information about the Python-list mailing list