From 79e1a7174c79897178771f71799880857553fd74 Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Fri, 15 Mar 2024 00:57:56 +0000 Subject: [PATCH] autoninja: Show additional help information for --help, like for -h. This doesn't catch all the variants of --help that getopt allows but it does catch --help, which is probably the most common. Bug: 329317224 Change-Id: I2dde63df84bd2c2ade5f9d2c1ab10c3dc13fba70 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5370829 Auto-Submit: David Baron Reviewed-by: Fumitoshi Ukai Commit-Queue: Fumitoshi Ukai --- autoninja.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoninja.py b/autoninja.py index 06921b8f64..87d8bb7e4b 100755 --- a/autoninja.py +++ b/autoninja.py @@ -218,7 +218,7 @@ def main(args): output_dir = arg[2:] elif arg in ("-o", "--offline"): offline = True - elif arg == "-h": + elif arg in ("-h", "--help"): print( "autoninja: Use -o/--offline to temporary disable remote execution.", file=sys.stderr,