python argparse mutually_exclusive_group and add_argument_group in a parent processor?
问题 I'm not sure if I've found an argparse bug, or if I'm being obtuse. I researched #45602511 which is how I found it "works" in the top-level case. I'm trying to use an argument_group to separate out some formatting options (which happen to be mutually exclusive). If things are at the top level of the parser structure, I can nest a mutually_exclusive_group under an argument_group and I get the help behavior I'm expecting: The following code works fine in Python 3.6.2: import argparse parser =