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 @@ -923,6 +923,8 @@ class HelpWithErrorCommand(HelpCommand):
923923 def __init__ (self , args , root = None ):
924924 # Essentially disable argument processing for this command
925925 super ().__init__ (args [:1 ], root )
926+ # First argument was "**help_with_error", so ignore it.
927+ # Subsequent arguments should be what was originally passed
926928 self .args = args [1 :]
927929
928930 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