Skip to content

Commit 267381b

Browse files
committed
Fixed ArgparseCompleter.print_help() not passing file stream to recursive call.
1 parent c9bf466 commit 267381b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 3.5.1 (April 24, 2026)
2+
3+
- Bug Fixes
4+
- Fixed `ArgparseCompleter.print_help()` not passing file stream to recursive call.
5+
16
## 3.5.0 (April 13, 2026)
27

38
- Bug Fixes

cmd2/argparse_completer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def print_help(self, tokens: list[str], file: IO[str] | None = None) -> None:
637637
if parser:
638638
completer_type = self._cmd2_app._determine_ap_completer_type(parser)
639639
completer = completer_type(parser, self._cmd2_app)
640-
completer.print_help(tokens[1:])
640+
completer.print_help(tokens[1:], file=file)
641641
return
642642

643643
self._parser.print_help(file=file)

0 commit comments

Comments
 (0)