def set_by_cli(var):
 detector = set_by_cli.detector
 if (detector is None):
  plugins = plugins_disco.PluginsRegistry.find_all()
  reconstructed_args = (helpful_parser.args + [helpful_parser.verb])
  detector = set_by_cli.detector = prepare_and_parse_args(plugins, reconstructed_args, detect_defaults=True)
  (detector.authenticator, detector.installer) = plugin_selection.cli_plugin_requests(detector)
  logger.debug('Default Detector is %r', detector)
 if (not isinstance(getattr(detector, var), _Default)):
  return True
 for modifier in VAR_MODIFIERS.get(var, []):
  if set_by_cli(modifier):
   return True
 return False

def set_by_cli ( var ) : detector = set_by_cli . detector if ( detector is None ) : plugins = plugins_disco . PluginsRegistry . find_all ( ) reconstructed_args = ( helpful_parser . args + [ helpful_parser . verb ] ) detector = set_by_cli . detector = prepare_and_parse_args ( plugins , reconstructed_args , detect_defaults = True ) ( detector . authenticator , detector . installer ) = plugin_selection . cli_plugin_requests ( detector ) logger . debug ( 'Default Detector is %r' , detector ) if ( not isinstance ( getattr ( detector , var ) , _Default ) ) : return True for modifier in VAR_MODIFIERS . get ( var , [ ] ) : if set_by_cli ( modifier ) : return True return False
return true if a particular config variable has been set by the user including if the user explicitly set it to the default .