in awscli/arguments.py [0:0]
def add_to_parser(self, parser):
"""
See the ``BaseCLIArgument.add_to_parser`` docs for more information.
"""
cli_name = self.cli_name
kwargs = {}
if self._dest is not None:
kwargs['dest'] = self._dest
if self._action is not None:
kwargs['action'] = self._action
if self._default is not None:
kwargs['default'] = self._default
if self._choices:
kwargs['choices'] = self._choices
if self._required is not None:
kwargs['required'] = self._required
if self._nargs is not None:
kwargs['nargs'] = self._nargs
if self._const is not None:
kwargs['const'] = self._const
parser.add_argument(cli_name, **kwargs)