Skip to content

Commit 0e3f7fd

Browse files
committed
Made do_man consistent with other do_ functions
1 parent 28f6a0d commit 0e3f7fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dissect/target/tools/shell.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,10 @@ def _exec_(argparts: list[str], stdout: TextIO) -> bool:
304304
no_cyber = cmdfunc.__func__ in (TargetCli.cmd_registry, TargetCli.cmd_enter)
305305
return self._exec(_exec_, command_args_str, no_cyber)
306306

307-
def do_man(self, line: str) -> None:
307+
def do_man(self, line: str) -> bool:
308308
"""alias for help"""
309309
self.do_help(line)
310+
return False
310311

311312
def complete_man(self, *args: list[str]) -> list[str]:
312313
return cmd.Cmd.complete_help(self, *args)

0 commit comments

Comments
 (0)