summaryrefslogtreecommitdiff
path: root/chromium/testing/merge_scripts/merge_api.py
blob: 739c985d92fd80004b7f29b4b6a6df08aa548b9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import argparse


def ArgumentParser(*args, **kwargs):
  """Creates an argument parser and adds the merge API arguments to it.

  See collect_task.collect_task for more on the merge script API.
  """
  parser = argparse.ArgumentParser(*args, **kwargs)
  parser.add_argument('--build-properties', help=argparse.SUPPRESS)
  parser.add_argument('--summary-json', help=argparse.SUPPRESS)
  parser.add_argument('--task-output-dir', help=argparse.SUPPRESS)
  parser.add_argument('-o', '--output-json', required=True,
                      help=argparse.SUPPRESS)
  parser.add_argument('jsons_to_merge', nargs='*', help=argparse.SUPPRESS)
  return parser