Avi Drissman | dfd88085 | 2022-09-15 20:11:09 | [diff] [blame] | 1 | # Copyright 2018 The Chromium Authors |
Stephen Martinis | 3c3b0e5 | 2019-03-06 18:39:51 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import argparse |
| 6 | |
| 7 | |
| 8 | def 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 Pastene | b5c6726 | 2024-05-15 21:24:01 | [diff] [blame] | 17 | parser.add_argument('-o', |
| 18 | '--output-json', |
| 19 | required=True, |
Stephen Martinis | 3c3b0e5 | 2019-03-06 18:39:51 | [diff] [blame] | 20 | help=argparse.SUPPRESS) |
| 21 | parser.add_argument('jsons_to_merge', nargs='*', help=argparse.SUPPRESS) |
| 22 | return parser |