Quellcode durchsuchen

Fix invalid argument error lining, remove print_help()

notcammy vor 7 Jahren
Ursprung
Commit
4940d21059
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4 4
      pyinstalive/initialize.py

+ 4 - 4
pyinstalive/initialize.py

@@ -294,10 +294,10 @@ def run():
 		if "-h" not in args_raw and "--help" not in args_raw:
 			CURSOR_UP_ONE = '\x1b[1A'
 			ERASE_LINE = '\x1b[2K'
-			log(CURSOR_UP_ONE + ERASE_LINE + CURSOR_UP_ONE + "[E] Invalid argument(s) were provided in command: " + ' ' * 50, "RED")
-			log("   pyinstalive " + ' '.join(args_raw), "YELLOW")
-			log("\n[I] Usage for PyInstaLive is printed below.\n", "GREEN")
-			parser.print_help()
+			log(CURSOR_UP_ONE * 2 + ERASE_LINE + CURSOR_UP_ONE + "[E] Invalid argument(s) were provided in command: " + ' ' * 50, "RED")
+			log("    pyinstalive " + ' '.join(args_raw)  + ' ' * 50, "YELLOW")
+			log(' ' * 50, "GREEN")
+			log("[I] \033[94mpyinstalive -h\033[92m can be used to display command help."  + ' ' * 50, "GREEN")
 			sys.exit(1)
 		else:
 			sys.exit(0)