Hi! I hit an issue when running an unknown command. The error message appears
to be about arguments rather than an unknown command.
Steps to reproduce
- Create a Pastel app with a single
index command (no subcommands).
- Run an unknown command:
Expected
An "unknown command" error (and/or a list of available commands).
Actual
error: too many arguments. Expected 0 arguments but got 1
Why this matters
This looks like a misclassification of the error, so users get a confusing
message that suggests they passed too many args instead of an invalid command.
Hi! I hit an issue when running an unknown command. The error message appears
to be about arguments rather than an unknown command.
Steps to reproduce
indexcommand (no subcommands).my-cli does-not-existExpected
An "unknown command" error (and/or a list of available commands).
Actual
Why this matters
This looks like a misclassification of the error, so users get a confusing
message that suggests they passed too many args instead of an invalid command.