Skip to content

Commit ae4e0a7

Browse files
authored
Fix special case for help_with_error. (#164)
Fixes #162
1 parent f0ecbcd commit ae4e0a7

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
@@ -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):

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)