Skip to content

Commit 581ca11

Browse files
committed
Fixed ArgparseCompleter.print_help() not passing file stream to recursive call.
1 parent 0abaeab commit 581ca11

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ prompt is displayed.
136136
the property.
137137
- Added `traceback_kwargs` attribute to allow customization of Rich-based tracebacks.
138138

139+
## 3.5.1 (April 24, 2026)
140+
141+
- Bug Fixes
142+
- Fixed `ArgparseCompleter.print_help()` not passing file stream to recursive call.
143+
- Fixed issue where `constants.REDIRECTION_TOKENS` was being mutated.
144+
139145
## 3.5.0 (April 13, 2026)
140146

141147
- Bug Fixes

cmd2/argparse_completer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ def print_help(self, tokens: Sequence[str], file: IO[str] | None = None) -> None
705705
if parser is not None:
706706
completer_type = self._cmd2_app._determine_ap_completer_type(parser)
707707
completer = completer_type(parser, self._cmd2_app)
708-
completer.print_help(tokens[1:])
708+
completer.print_help(tokens[1:], file=file)
709709
return
710710
self._parser.print_help(file=file)
711711

0 commit comments

Comments
 (0)