Skip to content

Commit

Permalink
Remove mutually exclusive group from Application
Browse files Browse the repository at this point in the history
This doesn't make much sense in its current form, opened
issue #11 to work on a better solution.
  • Loading branch information
GjjvdBurg committed Feb 11, 2023
1 parent daa81e7 commit e280c7d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions wilderness/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,24 +240,6 @@ def add_argument(self, *args, **kwargs) -> argparse.Action:
self._arg_help[action.dest] = description
return action

def add_mutually_exclusive_group(
self, *args, **kwargs
) -> MutuallyExclusiveGroupWrapper:
"""Add a mutually exclusive group
This wraps the `add_mutually_exclusive_group`_ from the argparse
module, and uses the same positional and keyword arguments.
.. _add_mutually_exclusive_group:
https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_mutually_exclusive_group
"""
assert self._parser is not None
_meg = self._parser.add_mutually_exclusive_group(*args, **kwargs)
meg = MutuallyExclusiveGroupWrapper(_meg)
meg.command = self
return meg

def add(self, command: Command):
"""Add a command to the application
Expand Down

0 comments on commit e280c7d

Please sign in to comment.