File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -919,6 +919,8 @@ class HelpWithErrorCommand(HelpCommand):
919919 def __init__ (self , args , root = None ):
920920 # Essentially disable argument processing for this command
921921 super ().__init__ (args [:1 ], root )
922+ # First argument was "**help_with_error", so ignore it.
923+ # Subsequent arguments should be what was originally passed
922924 self .args = args [1 :]
923925
924926 def execute (self ):
Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ wmain(int argc, wchar_t **argv)
578578
579579 // Use the default command if we have one
580580 if (default_cmd) {
581- if (!wcscmp (default_cmd, L" __help_with_error " )) {
581+ if (!wcscmp (default_cmd, L" **help_with_error " )) {
582582 const wchar_t *new_argv[] = {argv[0 ], default_cmd, argv[1 ]};
583583 return run_command (3 , new_argv);
584584 }
You can’t perform that action at this time.
0 commit comments