xref: /aosp_15_r20/external/cronet/testing/merge_scripts/merge_api.py (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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 
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)
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