parameters: (command_line)
docstring: Normalize -g arguments.
  
    If there's no -g args, it's equivalent to -g0. -g2 is equivalent to -g.
    Modifies |command_line| in place.
docstring_summary: Normalize -g arguments.
docstring_tokens: Normalize - g arguments .
function: def NormalizeSymbolArguments(command_line):
    """Normalize -g arguments.
  
    If there's no -g args, it's equivalent to -g0. -g2 is equivalent to -g.
    Modifies |command_line| in place.
    """
    # Strip -g0 if there's no symbols.
    have_some_symbols = False
    for x in command_line:
      if x.startswith('-g') and x != '-g0':
        have_some_symbols = True
    if not have_some_symbols and '-g0' in command_line:
      command_line.remove('-g0')
  
    # Rename -g2 to -g.
    if '-g2' in command_line:
      command_line[command_line.index('-g2')] = '-g'
function_tokens: def NormalizeSymbolArguments ( command_line ) : # Strip -g0 if there's no symbols. have_some_symbols = False for x in command_line : if x . startswith ( '-g' ) and x != '-g0' : have_some_symbols = True if not have_some_symbols and '-g0' in command_line : command_line . remove ( '-g0' ) # Rename -g2 to -g. if '-g2' in command_line : command_line [ command_line . index ( '-g2' ) ] = '-g'