()
return parser
Get the options parser.
Get the options parser.
Get the options parser .
def _GetOptionsParser():
  """Get the options parser."""

  parser = optparse.OptionParser(__doc__)

  parser.add_option('--output_file',
                    dest='output_file',
                    action='store',
                    help=('If specified, write output to this path instead of '
                          'writing to standard output.'))
  parser.add_option('--root',
                    dest='roots',
                    default=[],
                    action='append',
                    help='A root directory to scan for JS source files. '
                    'Paths of JS files in generated deps file will be '
                    'relative to this path.  This flag may be specified '
                    'multiple times.')
  parser.add_option('--root_with_prefix',
                    dest='roots_with_prefix',
                    default=[],
                    action='append',
                    help='A root directory to scan for JS source files, plus '
                    'a prefix (if either contains a space, surround with '
                    'quotes).  Paths in generated deps file will be relative '
                    'to the root, but preceded by the prefix.  This flag '
                    'may be specified multiple times.')
  parser.add_option('--path_with_depspath',
                    dest='paths_with_depspath',
                    default=[],
                    action='append',
                    help='A path to a source file and an alternate path to '
                    'the file in the generated deps file (if either contains '
                    'a space, surround with whitespace). This flag may be '
                    'specified multiple times.')
  return parser
def _GetOptionsParser ( ) : parser = optparse . OptionParser ( __doc__ ) parser . add_option ( '--output_file' , dest = 'output_file' , action = 'store' , help = ( 'If specified, write output to this path instead of ' 'writing to standard output.' ) ) parser . add_option ( '--root' , dest = 'roots' , default = [ ] , action = 'append' , help = 'A root directory to scan for JS source files. ' 'Paths of JS files in generated deps file will be ' 'relative to this path.  This flag may be specified ' 'multiple times.' ) parser . add_option ( '--root_with_prefix' , dest = 'roots_with_prefix' , default = [ ] , action = 'append' , help = 'A root directory to scan for JS source files, plus ' 'a prefix (if either contains a space, surround with ' 'quotes).  Paths in generated deps file will be relative ' 'to the root, but preceded by the prefix.  This flag ' 'may be specified multiple times.' ) parser . add_option ( '--path_with_depspath' , dest = 'paths_with_depspath' , default = [ ] , action = 'append' , help = 'A path to a source file and an alternate path to ' 'the file in the generated deps file (if either contains ' 'a space, surround with whitespace). This flag may be ' 'specified multiple times.' ) return parser