• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2018 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import argparse
6
7
8def ArgumentParser(*args, **kwargs):
9  """Creates an argument parser and adds the merge API arguments to it.
10
11  See collect_task.collect_task for more on the merge script API.
12  """
13  parser = argparse.ArgumentParser(*args, **kwargs)
14  parser.add_argument('--build-properties', help=argparse.SUPPRESS)
15  parser.add_argument('--summary-json', help=argparse.SUPPRESS)
16  parser.add_argument('--task-output-dir', help=argparse.SUPPRESS)
17  parser.add_argument('-o', '--output-json', required=True,
18                      help=argparse.SUPPRESS)
19  parser.add_argument('jsons_to_merge', nargs='*', help=argparse.SUPPRESS)
20  return parser
21