tools/metrics/histograms/generate_expired_histograms_array.py
def _ParseArguments():
  """Defines and parses arguments from the command line."""
  arg_parser = argparse.ArgumentParser(
      description="Generate array of expired histograms' hashes.")
  arg_parser.add_argument(
      "--output_dir",
      "-o",
      required=True,
      help="Base directory to for generated files.")
  arg_parser.add_argument(
      "--header_filename",
      "-H",
      required=True,
      help="File name of the generated header file.")
  arg_parser.add_argument(
      "--namespace",
      "-n",
      default="",
      help="Namespace of the generated factory function (code will be in "
      "the global namespace if this is omitted).")
  arg_parser.add_argument(
      "--major_branch_date_filepath",
      "-d",
      required=True,
      help="A path to the file with the base date.")
  arg_parser.add_argument(
      "--milestone_filepath",
      "-m",
      required=True,
      help="A path to the file with the milestone information.")
  arg_parser.add_argument(
      "inputs",
      nargs="+",
      help="Paths to .xml files with histogram descriptions.")
  return arg_parser.parse_args()
Defines and parses arguments from the command line.
Defines and parses arguments from the command line.
Defines and parses arguments from the command line .
def _ParseArguments():
  arg_parser = argparse.ArgumentParser(
      description="Generate array of expired histograms' hashes.")
  arg_parser.add_argument(
      "--output_dir",
      "-o",
      required=True,
      help="Base directory to for generated files.")
  arg_parser.add_argument(
      "--header_filename",
      "-H",
      required=True,
      help="File name of the generated header file.")
  arg_parser.add_argument(
      "--namespace",
      "-n",
      default="",
      help="Namespace of the generated factory function (code will be in "
      "the global namespace if this is omitted).")
  arg_parser.add_argument(
      "--major_branch_date_filepath",
      "-d",
      required=True,
      help="A path to the file with the base date.")
  arg_parser.add_argument(
      "--milestone_filepath",
      "-m",
      required=True,
      help="A path to the file with the milestone information.")
  arg_parser.add_argument(
      "inputs",
      nargs="+",
      help="Paths to .xml files with histogram descriptions.")
  return arg_parser.parse_args()
def _ParseArguments ( ) : arg_parser = argparse . ArgumentParser ( description = "Generate array of expired histograms' hashes." ) arg_parser . add_argument ( "--output_dir" , "-o" , required = True , help = "Base directory to for generated files." ) arg_parser . add_argument ( "--header_filename" , "-H" , required = True , help = "File name of the generated header file." ) arg_parser . add_argument ( "--namespace" , "-n" , default = "" , help = "Namespace of the generated factory function (code will be in " "the global namespace if this is omitted)." ) arg_parser . add_argument ( "--major_branch_date_filepath" , "-d" , required = True , help = "A path to the file with the base date." ) arg_parser . add_argument ( "--milestone_filepath" , "-m" , required = True , help = "A path to the file with the milestone information." ) arg_parser . add_argument ( "inputs" , nargs = "+" , help = "Paths to .xml files with histogram descriptions." ) return arg_parser . parse_args ( )
Defines and parses arguments from the command line.
Defines and parses arguments from the command line .
"""Defines and parses arguments from the command line."""