def add(flagname, **kwargs):
    """Add a flag name and its setting.

    :param flagname: flag name declared in cmd as --<flagname>=...
    :type flagname: str
    """
    Flags.PARSER.add_option('--%s' % flagname,
                            dest=flagname, **kwargs)
dataset/ETHPy150Open openstack/compass-core/compass/utils/flags.py/add/original