ArgumentParser.
add_mutually_exclusive_group
(required=False)¶
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:
The
add_mutually_exclusive_group()
method also accepts a required argument, to indicate that at least one of the mutually exclusive arguments is required:
Note that currently mutually exclusive argument groups do not support the title and description arguments of
add_argument_group()
.
Comments
Post a Comment
https://gengwg.blogspot.com/