def SetDefaultColoring(state):
    """Set coloring behavior to |state|.

  This is useful for overriding config options via the command line.
  """
    if state is None:
        return
    global DEFAULT
    state = state.lower()
    if state in ('auto',):
        DEFAULT = state
    elif state in ('always', 'yes', 'true', True):
        DEFAULT = 'always'
    elif state in ('never', 'no', 'false', False):
        DEFAULT = 'never'
