From 114fdaafe71067489886f084a02dd33e9a0037ac Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Sun, 12 Jul 2026 08:48:22 -0700 Subject: [PATCH] Document the -s/--steal-output CLI option --steal-output was the only argument without a help string, so it appears in the --help output with no explanation. Add one, noting that the feature is currently unimplemented (passing -s raises NotImplementedError in Debugger.__init__). Reported as Debian bug #773262 (https://bugs.debian.org/773262). --- pudb/run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pudb/run.py b/pudb/run.py index 7a4ffa3d..561eaa91 100644 --- a/pudb/run.py +++ b/pudb/run.py @@ -51,7 +51,9 @@ def get_argparse_parser(): dest="_continue_at_start", help="Let the script run until an exception occurs or a breakpoint is hit", ) - parser.add_argument("-s", "--steal-output", action="store_true") + parser.add_argument("-s", "--steal-output", action="store_true", + help="Redirect the debugged program's stdout/stderr " + "into pudb (note: not yet implemented)") # note: we're implementing -m as a boolean flag, mimicking pdb's behavior, # and makes it possible without much fuss to support cases like: