Skip to content

Commit fe308da

Browse files
committed
Updated comment.
1 parent 03db5e4 commit fe308da

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmd2/argparse_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,8 @@ def update_prog(self, prog: str) -> None:
686686

687687
# subparsers_action._name_parser_map includes aliases. Since primary names are inserted
688688
# first, we skip already updated parsers to ensure primary names are used in 'prog'.
689+
# We can't rely on subparsers_action._choices_actions to filter out aliases because while
690+
# it contains only primary names, it omits any subcommands that lack help text.
689691
updated_parsers: set[Cmd2ArgumentParser] = set()
690692

691693
# Set the prog value for each subcommand's parser

0 commit comments

Comments
 (0)