Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid subcommand error message is not helpful #1009

Open
Garados007 opened this issue Feb 20, 2024 · 1 comment
Open

Invalid subcommand error message is not helpful #1009

Garados007 opened this issue Feb 20, 2024 · 1 comment

Comments

@Garados007
Copy link

I am working on a command line application with a git-like CLI interface and am using your project for this. Unfortunately, the error message is not very helpful when an unknown subcommand has been provided:

$ app unknown-subcommand
ERROR: RequiredError: A subcommand is required
app - app help

I would like to see an error message saying that unknown-subcommand is an unsupported subcommand, and possibly a list of supported subcommands (perhaps filtering for similar ones). Just like git does:

$ git puhs
git: 'puhs' is not a git command. See 'git --help'.

The most similar command is
        push

As far as I can see, this does not seem to be supported in CLI11. Can you add support for this or am I missing something?

@phlptp
Copy link
Collaborator

phlptp commented Feb 20, 2024

I suppose it is theoretically possible, but it isn't a priority at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants