blob: f3534a107b1c0d8957650444c6c59f8241878984 [file] [log] [blame]
#!/usr/bin/env python
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
This script is used to download the clang update script. It runs as a gclient
It's equivalent to using curl to download the latest update script.
import argparse
import curlish
import sys
def main():
parser = argparse.ArgumentParser(description='Download a file.')
parser.add_argument('--output', help='Path to file to create/overwrite.')
args = parser.parse_args()
if not args.output:
print('usage: --output=/a/b/')
return 1
return 0 if curlish.curlish(SCRIPT_DOWNLOAD_URL, args.output) else 1
if __name__ == '__main__':