diff options
author | Dan Albert <danalbert@google.com> | 2019-08-29 16:30:07 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2019-08-29 16:31:10 -0700 |
commit | 1462ee0d26fdd209bef5eb28722909bcf16b1607 (patch) | |
tree | 08f346639affc32cdae65f00b57355cf7d36699d /checkbuild.py | |
parent | a7df0cc41f53d602f73b8250ec935d09a2e00648 (diff) | |
download | ndk-1462ee0d26fdd209bef5eb28722909bcf16b1607.tar.gz |
Fix `checkbuild.py --help`.
This does have the rather unfortunate behavior of requiring bootstrap
to complete before the help can be displayed, but there isn't really a
way around that.
Test: ./checkbuild.py --help
Bug: None
Change-Id: If9b76166836bb4f0774629855a8cfc6ab4f64535
Diffstat (limited to 'checkbuild.py')
-rwxr-xr-x | checkbuild.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/checkbuild.py b/checkbuild.py index da676df90..a9037a238 100755 --- a/checkbuild.py +++ b/checkbuild.py @@ -33,7 +33,8 @@ THIS_DIR = os.path.realpath(os.path.dirname(__file__)) def parse_args(): """Parses and returns command line arguments.""" - parser = argparse.ArgumentParser() + # Don't add help because it inhibits the real checkbuild.py's --help. + parser = argparse.ArgumentParser(add_help=False) parser.add_argument( '-v', '--verbose', |