Author paul.j3
Recipients Michael.Cohen, paul.j3
Date 2014-06-02.22:35:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
You can specify the 'formatter_class' when creating each subparser:

    sp1=sp.add_parser('cmd1', formatter_class = argparse.RawDescriptionHelpFormatter)

The 'add_parser' command is the one that passes a variety of **kwargs to 'ArgumentParser' (or what ever parser creator is being used for the subparsers).  'add_subparsers' is more like a 'add_argument' command, creating a '_SubParsersAction' instance.

Few, if any, attributes of the main parser are propagated to the subparsers.  I'd have to study the code more closely, but I think it's just the parser class that is propagated.
Date User Action Args
2014-06-02 22:35:56paul.j3setrecipients: + paul.j3, Michael.Cohen
2014-06-02 22:35:56paul.j3setmessageid: <>
2014-06-02 22:35:56paul.j3linkissue21633 messages
2014-06-02 22:35:55paul.j3create