spin: `spin up` prints `spin trigger http` usage on bad flag
$ spin up --fie
error: Found argument '--fie' which wasn't expected, or isn't valid in this context
If you tried to supply `--fie` as a value rather than a flag, use `-- --fie`
USAGE:
spin trigger http [OPTIONS]
For more information try --help
Error: exit status: 2
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 24 (24 by maintainers)
Well, they are only shown if the user makes a mistake, and it’s not like these components are secret, and realistically few people read the USAGE. If I make a mistake I usually go, “oh, duh, I mistyped
--lsiten
when I meant--listen
, I’ll just cursor up and fix it.” So I would not say very important - it’s just nice to be tidy.Obviously we would consider it more important if people were reporting it as causing problems for them, but at the moment it’s only me being pedantic I think!
Awesome, thanks!
okay got it So to summarize for any invalid command it is suggesting a internal command (gets exposed) for the users to run which is not meant to be used by them