Python argparse._MutuallyExclusiveGroup() Examples
The following are 2
code examples of argparse._MutuallyExclusiveGroup().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
argparse
, or try the search function
.
Example #1
Source File: _argparse.py From cliff with Apache License 2.0 | 5 votes |
def add_mutually_exclusive_group(self, **kwargs): group = _MutuallyExclusiveGroup(self, **kwargs) self._mutually_exclusive_groups.append(group) return group
Example #2
Source File: argparse_to_json.py From Gooey with MIT License | 5 votes |
def is_mutex(action): return isinstance(action, argparse._MutuallyExclusiveGroup)