Skip to content

Remove support for abbreviated commands #289

@tleonhardt

Description

@tleonhardt

The ability to abbreviate commands has always seemed like an anti-feature. The presence of good tab-completion of command names makes it completely unnecessary to allow for accepting abbreviated command names. While accepting abbreviated command names can result in users accidentally doing something quite unintentional. Supporting abbreviated commands significantly complicates other support for several other features and it has outright never worked in combination with multi line commands, which we have documented.

The cmd2.Cmd.abbrev attribute which supports abbreviated commands should be removed entirely.

Associated documentation, unit tests, and examples will all need to be updated and the CHANGELOG will need to adequately communicate this potentially breaking change.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions