Skip to content

Commit 9b9a7f7

Browse files
committed
Fix special case for help_with_error.
Fixes #162
1 parent d26b802 commit 9b9a7f7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/manage/commands.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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):

src/pymanager/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)