merge_api.py 811 B

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