blob: 71c4dded12d56420004e80e9d985051cc39f1aba [file] [log] [blame]
Avi Drissmandfd880852022-09-15 20:11:091# Copyright 2018 The Chromium Authors
Stephen Martinis3c3b0e52019-03-06 18:39:512# 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)
Ben Pasteneb5c67262024-05-15 21:24:0117 parser.add_argument('-o',
18 '--output-json',
19 required=True,
Stephen Martinis3c3b0e52019-03-06 18:39:5120 help=argparse.SUPPRESS)
21 parser.add_argument('jsons_to_merge', nargs='*', help=argparse.SUPPRESS)
22 return parser