Set cache-control when uploading to google storage
R=gavinmak@google.com
Bug: 585752
Change-Id: I25ece89abd09ad509807a7db0403bac0f5ebdd4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3171825
Auto-Submit: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
diff --git a/gsutil.py b/gsutil.py
index 59a0e14..52bd519 100755
--- a/gsutil.py
+++ b/gsutil.py
@@ -177,7 +177,8 @@
def parse_args():
bin_dir = os.environ.get('DEPOT_TOOLS_GSUTIL_BIN_DIR', DEFAULT_BIN_DIR)
- parser = argparse.ArgumentParser()
+ # Help is disabled as it conflicts with gsutil -h, which controls headers.
+ parser = argparse.ArgumentParser(add_help=False)
parser.add_argument('--clean', action='store_true',
help='Clear any existing gsutil package, forcing a new download.')