Irit Katriel added the comment:
What Paul explained is also covered in the documentation here:
https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_subparsers
--
nosy: +iritkatriel
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
paul j3 added the comment:
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 c
New submission from Michael Cohen:
Argparse has an option to set the custom help formatter class as a kwarg. For
example one can define:
class MyHelpFormatter(argparse.RawDescriptionHelpFormatter):
def add_argument(self, action):
if action.dest != "SUPPRESS":
super(Reka