components/exo/wayland/fuzzer/wayland_utils.py
def ParseOpts(argv):
  """Parses the given command line arguments for the templater.

  Args:
    argv: the arguments to be parsed.

  Returns:
    An argparse.ArgumentParser which provides the user's chosen configuration
    for this templater run.
  """
  parser = argparse.ArgumentParser()
  parser.add_argument(
      '-d',
      '--directory',
      help='treat input paths as relative to this directory',
      default='.')
  parser.add_argument(
      '-i',
      '--input',
      help='path to the input template file (relative to -d)',
      required=True)
  parser.add_argument(
      '-o',
      '--output',
      help='path to write the generated file to',
      required=True)
  parser.add_argument(
      '-s',
      '--spec',
      help='path(s) to the wayland specification(s)',
      nargs='+',
      required=True)
  return parser.parse_args(argv[1:])
Parses the given command line arguments for the templater.

  Args:
    argv: the arguments to be parsed.

  Returns:
    An argparse.ArgumentParser which provides the user's chosen configuration
    for this templater run.
  
Parses the given command line arguments for the templater.
Parses the given command line arguments for the templater .
def ParseOpts(argv):
  parser = argparse.ArgumentParser()
  parser.add_argument(
      '-d',
      '--directory',
      help='treat input paths as relative to this directory',
      default='.')
  parser.add_argument(
      '-i',
      '--input',
      help='path to the input template file (relative to -d)',
      required=True)
  parser.add_argument(
      '-o',
      '--output',
      help='path to write the generated file to',
      required=True)
  parser.add_argument(
      '-s',
      '--spec',
      help='path(s) to the wayland specification(s)',
      nargs='+',
      required=True)
  return parser.parse_args(argv[1:])
def ParseOpts ( argv ) : parser = argparse . ArgumentParser ( ) parser . add_argument ( '-d' , '--directory' , help = 'treat input paths as relative to this directory' , default = '.' ) parser . add_argument ( '-i' , '--input' , help = 'path to the input template file (relative to -d)' , required = True ) parser . add_argument ( '-o' , '--output' , help = 'path to write the generated file to' , required = True ) parser . add_argument ( '-s' , '--spec' , help = 'path(s) to the wayland specification(s)' , nargs = '+' , required = True ) return parser . parse_args ( argv [ 1 : ] )
Parses the given command line arguments for the templater.
Parses the given command line arguments for the templater .
"""Parses the given command line arguments for the templater.

  Args:
    argv: the arguments to be parsed.

  Returns:
    An argparse.ArgumentParser which provides the user's chosen configuration
    for this templater run.
  """
An argparse.ArgumentParser which provides the user's chosen configuration
for this templater run.
An argparse . ArgumentParser which provides the user ' s chosen configuration for this templater run .
argv
the arguments to be parsed.
the arguments to be parsed .