autocomplete
autocomplete copied to clipboard
[rustup] subcommands are missing required arguments and autocompletion suggestions
Sanity checks
- [X] My issue relates to a specific CLI completion spec (e.g.
git checkoutis missing options ingitcompletion spec). If your issue is more general, please create your issue here: withfig/fig - [X] I have searched github.com/withfig/autocomplete/issues and there are no duplicates of my issue
- [X] I would like to work on this.
What CLI tool does this relate to?
rustup
Which statement makes the most sense?
There are errors with this completion spec
Issue Details
I found some issues with the rustup CLI spec, after initially trying to run rustup component add:
--version: this option is not available in every subcommand context, only at the root (viarustup --version)rustup help+rustup <subcommand> help: does not suggest subcommandsrustup check: does not accept any arguments, but is listed as so in the specrustup component list: accepts an optional--installedoption, but isn't listedrustup component <add|remove>: both subcommands require a<component>argument, but isn't listedrustup default: requires a<toolchain>argument, but isn't listedrustup man: requires a<subcommand>argument, but isn't listedrustup override <set|unset>: both subcommands require a<toolchain>argument, but it isn't listedrustup self uninstall: accepts a-yoption, but isn't listedrustup set: accepts aprofilesubcommand, butprofileisn't listedrustup target <add|remove>:- Minor typo in the toolchain argument name:
<toolchaininstead of<toolchain> - Does not provide suggestions for common targets like stable and nightly
- Minor typo in the toolchain argument name:
rustup toolchain link <toolchain> <path>: path accepts a directory, but doesn't suggest anyrustup toolchain list: missing optional--verboseoption which lists extra information about toolchains
Hey @neoncitylights! Thanks for taking the initiative on this. Let me know if you get stuck on anything :)