wpiformat/wpiformat/cpplint.py
def ParseArguments(args):
  """Parses the command line arguments.

  This may set the output format and verbosity level as side-effects.

  Args:
    args: The command line arguments:

  Returns:
    The list of filenames to lint.
  """
  try:
    (opts, filenames) = getopt.getopt(args, '', ['help',
                                                 'srcs=',
                                                 'headers='])
  except getopt.GetoptError:
    PrintUsage('Invalid arguments.')

  for (opt, val) in opts:
    if opt == '--help':
      PrintUsage(None)
    elif opt == '--srcs':
      global _source_regex
      try:
        _source_regex = regex.compile(val)
      except ValueError:
          PrintUsage('Extensions must be comma seperated list.')
    elif opt == '--headers':
      global _header_regex
      try:
          _header_regex = regex.compile(val)
      except ValueError:
        PrintUsage('Extensions must be comma seperated list.')

  if not filenames:
    PrintUsage('No files were specified.')

  return filenames
Parses the command line arguments.

  This may set the output format and verbosity level as side-effects.

  Args:
    args: The command line arguments:

  Returns:
    The list of filenames to lint.
  
Parses the command line arguments.
This may set the output format and verbosity level as side-effects.
Parses the command line arguments . This may set the output format and verbosity level as side - effects .
def ParseArguments(args):
  try:
    (opts, filenames) = getopt.getopt(args, '', ['help',
                                                 'srcs=',
                                                 'headers='])
  except getopt.GetoptError:
    PrintUsage('Invalid arguments.')
  for (opt, val) in opts:
    if opt == '--help':
      PrintUsage(None)
    elif opt == '--srcs':
      global _source_regex
      try:
        _source_regex = regex.compile(val)
      except ValueError:
          PrintUsage('Extensions must be comma seperated list.')
    elif opt == '--headers':
      global _header_regex
      try:
          _header_regex = regex.compile(val)
      except ValueError:
        PrintUsage('Extensions must be comma seperated list.')
  if not filenames:
    PrintUsage('No files were specified.')
  return filenames
def ParseArguments ( args ) : try : ( opts , filenames ) = getopt . getopt ( args , '' , [ 'help' , 'srcs=' , 'headers=' ] ) except getopt . GetoptError : PrintUsage ( 'Invalid arguments.' ) for ( opt , val ) in opts : if opt == '--help' : PrintUsage ( None ) elif opt == '--srcs' : global _source_regex try : _source_regex = regex . compile ( val ) except ValueError : PrintUsage ( 'Extensions must be comma seperated list.' ) elif opt == '--headers' : global _header_regex try : _header_regex = regex . compile ( val ) except ValueError : PrintUsage ( 'Extensions must be comma seperated list.' ) if not filenames : PrintUsage ( 'No files were specified.' ) return filenames
Parses the command line arguments.
Parses the command line arguments .
"""Parses the command line arguments.

  This may set the output format and verbosity level as side-effects.

  Args:
    args: The command line arguments:

  Returns:
    The list of filenames to lint.
  """
The list of filenames to lint.
The list of filenames to lint .
args
The command line arguments.
The command line arguments .