

def _get_default_parser(self, usage, description, ignore_unknown_options=False):
    if ignore_unknown_options:
        parser = ForgivingParser(usage=usage, description=description)
    else:
        parser = OptionParser(usage=usage, description=description)
    self.add_option('--config-dir', type='string', dest='config_dir', help='Directory for the cluster files [default to {0}]'.format(common.get_default_path_display_name()))
    return parser

dataset/ETHPy150Open pcmanus/ccm/ccmlib/cmds/command.py Cmd._get_default_parser/VarMisuse@55/74 `parser`->`self`