Deprecated since 3.11, removed in 3.14. Calling add_argument_group() or add_mutually_exclusive_group() on a mutually exclusive group now raises an exception. This nesting was never supported, often failed to work correctly, and was unintentionally exposed through inheritance.
Create a mutually exclusive group. argparse will make sure that only one of the arguments in the mutually exclusive group was present on the command line: