loam/cli.py
def _names(section, option):
    """List of cli strings for a given option."""
    meta = section.def_[option]
    action = meta.cmd_kwargs.get('action')
    if action is internal.Switch:
        names = ['-{}'.format(option), '+{}'.format(option)]
        if meta.shortname is not None:
            names.append('-{}'.format(meta.shortname))
            names.append('+{}'.format(meta.shortname))
    else:
        names = ['--{}'.format(option)]
        if meta.shortname is not None:
            names.append('-{}'.format(meta.shortname))
    return names
def _names(section, option):
    """List of cli strings for a given option."""
    meta = section.def_[option]
    action = meta.cmd_kwargs.get('action')
    if action is internal.Switch:
        names = ['-{}'.format(option), '+{}'.format(option)]
        if meta.shortname is not None:
            names.append('-{}'.format(meta.shortname))
            names.append('+{}'.format(meta.shortname))
    else:
        names = ['--{}'.format(option)]
        if meta.shortname is not None:
            names.append('-{}'.format(meta.shortname))
    return names
List of cli strings for a given option.