Skip to content

running an unknown subcommand does not fail #432

@seflless

Description

@seflless

This may be by design, but I would have expected calling:

command <unknown-sub-command> 

...to fail. But instead it just exits immediately, this can lead to confusion when tired as you might think your command isn't working, but instead it's just spelt incorrectly.

Is there a flag or something to enable this error. Or should I just make a white list of known commands and fail when the first parameter isn't a known sub command?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions