(self, parser_or_desc, aliases=[])
:param parser_or_desc: `argparse.ArgumentParser` instance or `str`
:param parser_or_desc: `argparse.ArgumentParser` instance or `str`
: param parser_or_desc : argparse . ArgumentParser instance or str
def __init__(self, parser_or_desc, aliases=[]):
        """
        :param parser_or_desc: `argparse.ArgumentParser` instance or `str`
        """
        if isinstance(parser_or_desc, str):
            self.parser = argparse.ArgumentParser(description=parser_or_desc)
        else:
            self.parser = parser_or_desc
        self.aliases = aliases
        # We want to run all integer and otherwise-unspecified arguments
        # through fix() so that GDB parses it.
        for action in self.parser._actions:
            if action.dest == 'help':
                continue
            if action.type in (int, None):
                action.type = fix_int_reraise
            if action.default is not None:
                action.help += ' (default: %(default)s)'
def __init__ ( self , parser_or_desc , aliases = [ ] ) : if isinstance ( parser_or_desc , str ) : self . parser = argparse . ArgumentParser ( description = parser_or_desc ) else : self . parser = parser_or_desc self . aliases = aliases # We want to run all integer and otherwise-unspecified arguments # through fix() so that GDB parses it. for action in self . parser . _actions : if action . dest == 'help' : continue if action . type in ( int , None ) : action . type = fix_int_reraise if action . default is not None : action . help += ' (default: %(default)s)'