loam/tools.py
def switch_opt(default, shortname, help_msg):
    """Define a switchable ConfOpt.

    This creates a boolean option. If you use it in your CLI, it can be
    switched on and off by prepending + or - to its name: +opt / -opt.

    Args:
        default (bool): the default value of the swith option.
        shortname (str): short name of the option, no shortname will be used if
            it is set to None.
        help_msg (str): short description of the option.

    Returns:
        :class:`~loam.manager.ConfOpt`: a configuration option with the given
        properties.
    """
    return ConfOpt(bool(default), True, shortname,
                   dict(action=internal.Switch), True, help_msg, None)
def switch_opt(default, shortname, help_msg):
    return ConfOpt(bool(default), True, shortname,
                   dict(action=internal.Switch), True, help_msg, None)
def switch_opt ( default , shortname , help_msg ) : return ConfOpt ( bool ( default ) , True , shortname , dict ( action = internal . Switch ) , True , help_msg , None )
Define a switchable ConfOpt.

    This creates a boolean option. If you use it in your CLI, it can be
    switched on and off by prepending + or - to its name: +opt / -opt.

    Args:
        default (bool): the default value of the swith option.
        shortname (str): short name of the option, no shortname will be used if
            it is set to None.
        help_msg (str): short description of the option.

    Returns:
        :class:`~loam.manager.ConfOpt`: a configuration option with the given
        properties.
Define a switchable ConfOpt .