From f9375674dfcdcbab13eb3329c6986302964ad31a Mon Sep 17 00:00:00 2001 From: Collins Abitekaniza Date: Mon, 1 Oct 2018 04:06:58 +0300 Subject: [PATCH] allow use of ./x.py help ... --- src/bootstrap/bootstrap.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index d9c66ce2d7790..c27f4f056d747 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -844,6 +844,11 @@ def bootstrap(help_triggered): def main(): """Entry point for the bootstrap process""" start_time = time() + + # x.py help ... + if len(sys.argv) > 1 and sys.argv[1] == 'help': + sys.argv = sys.argv[:1] + [sys.argv[2], '-h'] + sys.argv[3:] + help_triggered = ( '-h' in sys.argv) or ('--help' in sys.argv) or (len(sys.argv) == 1) try: