File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1373,10 +1373,9 @@ def main():
13731373 sys .argv [1 ] = "-h"
13741374
13751375 args = parse_args (sys .argv )
1376- help_triggered = args .help or len (sys .argv ) == 1
13771376
13781377 # Root help (e.g., x.py --help) prints help from the saved file to save the time
1379- if help_triggered and sys .argv [1 ] in ["-h" , "--help" ]:
1378+ if len ( sys . argv ) == 1 or sys .argv [1 ] in ["-h" , "--help" ]:
13801379 try :
13811380 with open (
13821381 os .path .join (os .path .dirname (__file__ ), "../etc/xhelp" ), "r"
@@ -1393,7 +1392,7 @@ def main():
13931392
13941393 # If the user is asking for other helps, let them know that the whole download-and-build
13951394 # process has to happen before anything is printed out.
1396- if help_triggered :
1395+ if args . help :
13971396 eprint (
13981397 "INFO: Downloading and building bootstrap before processing --help command.\n "
13991398 " See src/bootstrap/README.md for help with common commands."
@@ -1411,7 +1410,7 @@ def main():
14111410 eprint (error )
14121411 success_word = "unsuccessfully"
14131412
1414- if not help_triggered :
1413+ if not args . help :
14151414 eprint (
14161415 "Build completed" ,
14171416 success_word ,
You can’t perform that action at this time.
0 commit comments