Skip to content

Bug in Cmd2HelpFormatter and ArgparseCompleter when metavar is a tuple #974

Closed
@tleonhardt

Description

@tleonhardt

The Cmd2HelpFormatter class has a bug which causes a crash in the following circumstances:

  • nargs is an int and > 1
  • metavar is a tuple

Tested with cmd2 1.2.0 but verified the bug exists in the current version as well.

In my case, the crash occurs on line 780 in the current code with the _format_args method.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions