| # Copyright (c) 2022, the R8 project authors. Please see the AUTHORS file |
| # for details. All rights reserved. Use of this source code is governed by a |
| # BSD-style license that can be found in the LICENSE file. |
| parser = argparse.ArgumentParser( |
| description = 'Helper to fetch r8.jar from cloudstorage.') |
| help='Version or commit-hash to download ' |
| '(e.g., 3.3.50 or 33ae86d80351efc4d632452331d06cb97e42f2a7).', |
| help='Output directory to place the r8.jar in (default cwd).', |
| return parser.parse_args() |
| outdir = args.outdir if args.outdir else '' |
| print(compiledump.download_distribution(args.version, True, outdir)) |
| if __name__ == '__main__': |