Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/manage/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,8 @@ class HelpWithErrorCommand(HelpCommand):
def __init__(self, args, root=None):
# Essentially disable argument processing for this command
super().__init__(args[:1], root)
# First argument was "**help_with_error", so ignore it.
# Subsequent arguments should be what was originally passed
self.args = args[1:]

def execute(self):
Expand Down
2 changes: 1 addition & 1 deletion src/pymanager/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ wmain(int argc, wchar_t **argv)

// Use the default command if we have one
if (default_cmd) {
if (!wcscmp(default_cmd, L"__help_with_error")) {
if (!wcscmp(default_cmd, L"**help_with_error")) {
const wchar_t *new_argv[] = {argv[0], default_cmd, argv[1]};
return run_command(3, new_argv);
}
Expand Down
Loading