From 3796ec339964d7fbb3d71731e5ef6a2aa23fda60 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Sun, 9 Aug 2026 00:44:33 +0700 Subject: [PATCH] fix(completion): stop a rustup flag describing itself MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `rustup doc --unstable-book` carried "--unstable-book" as its description, so the menu printed the flag twice and explained nothing. Every sibling reads as the title of what it opens — The Cargo Book, The Rust Reference, The Embedded Rust Book — and rustup's own help calls this one The Unstable Book. Found by sweeping the specs for descriptions that merely repeat their own flag. The other eleven hits are terse but real: docker login --password really is "Password". --- assets/completions/rustup.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/completions/rustup.json b/assets/completions/rustup.json index 8f2f9895..a9f34abf 100644 --- a/assets/completions/rustup.json +++ b/assets/completions/rustup.json @@ -1 +1 @@ -{"description":"The Rust toolchain installer","options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-q","--quiet"],"description":"Disable progress output","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-v","--verbose"],"description":"Enable verbose output","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Release channel (e.g. +stable) or custom toolchain to set override","optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[{"names":["show"],"description":"Show the active and installed toolchains or profiles","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[{"names":["active-toolchain"],"description":"Show the active toolchain","hidden":false,"options":[],"args":[],"subcommands":[]},{"names":["home"],"description":"Display the computed value of RUSTUP_HOME","hidden":false,"options":[],"args":[],"subcommands":[]},{"names":["profile"],"description":"Show the current profile","hidden":false,"options":[],"args":[],"subcommands":[]},{"names":["keys"],"description":"Display the known PGP keys","hidden":false,"options":[],"args":[],"subcommands":[]},{"names":["help"],"description":"Prints this message or the help of the given subcommand(s)","hidden":false,"options":[],"args":[],"subcommands":[]}]},{"names":["update"],"description":"Update Rust toolchains and rustup","hidden":false,"options":[{"names":["--force"],"description":"Force an update, even if some components are missing","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--force-non-host"],"description":"Install toolchains that require an emulator. See https://github.com/rust-lang/rustup/wiki/Non-host-toolchains","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--no-self-update"],"description":"Don't perform self update when running the `rustup update` command","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Toolchain name. For more information see `rustup help toolchain`","optional":true,"variadic":true,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"subcommands":[]},{"names":["check"],"description":"Check for updates to Rust toolchains and rustup","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Toolchain name. For more information see `rustup help toolchain`","optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]},{"names":["default"],"description":"Sets the default toolchain to the one specified. If the toolchain is not already installed then it is installed first","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Toolchain name","optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"subcommands":[]},{"names":["target"],"description":"Modify a toolchain's supported targets","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[{"names":["list"],"description":"List installed and available targets","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["add"],"description":"Add a target to a Rust toolchain","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--toolchain"],"description":"Toolchain name, such as 'stable', 'nightly', or '1.8.0'","args":[{"name":"toolchain","description":"Toolchain name","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"target","description":"Target triple","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","target","list"]}]}],"subcommands":[]},{"names":["remove"],"description":"Remove a target from a Rust toolchain","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--toolchain"],"description":"Toolchain name, such as 'stable', 'nightly', or '1.8.0'","args":[{"name":"toolchain","description":"Toolchain name","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"target","description":"Target triple","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","target","list"]}]}],"subcommands":[]},{"names":["help"],"description":"Prints this message or the help of the given subcommand(s)","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"subcommand","description":null,"optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]}]},{"names":["toolchain"],"description":"Modify or query the installed toolchains","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[{"names":["list"],"description":"List installed toolchains","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["install"],"description":"Install or update a given toolchain","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-t","--target"],"description":"Add specific targets on installation","args":[{"name":"targets","description":null,"optional":false,"variadic":true,"template":[],"suggestions":[],"generators":[{"script":["rustup","target","list"]}]}],"required":false,"repeatable":false,"hidden":false},{"names":["-c","--component"],"description":"Add specific components on installation","args":[{"name":"components","description":null,"optional":false,"variadic":true,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--profile"],"description":"Installation profile: minimal, default, complete","args":[{"name":"profile","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["minimal"],"description":null},{"names":["default"],"description":null},{"names":["complete"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--allow-downgrade"],"description":"Allow rustup to downgrade the toolchain to satisfy your component choice","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--force"],"description":"Force an update, even if some components are missing","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--no-self-update"],"description":"Don't perform self update when running the`rustup toolchain install` command","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Toolchain name","optional":false,"variadic":true,"template":[],"suggestions":[],"generators":[{"script":["bash","-c","if command -v gh > /dev/null; then gh api -H \"Accept: application/vnd.github+json\" /repos/rust-lang/rust/releases; else curl -sfL -H \"Accept: application/vnd.github+json\" https://api.github.com/repos/rust-lang/rust/releases; fi"]}]}],"subcommands":[]},{"names":["uninstall"],"description":"Uninstall a toolchain","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Toolchain name","optional":false,"variadic":true,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"subcommands":[]},{"names":["link"],"description":"Create a custom toolchain by symlinking to a directory","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Custom toolchain name","optional":false,"variadic":true,"template":[],"suggestions":[],"generators":[]},{"name":"path","description":"Path to the directory","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]},{"names":["help"],"description":"Prints this message or the help of the given subcommand(s)","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"subcommand","description":null,"optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]}]},{"names":["component"],"description":"Modify a toolchain's installed components","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[{"names":["list"],"description":"List installed and available components","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["add"],"description":"Add a component to a Rust toolchain","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["remove"],"description":"Remove a component from a Rust toolchain","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["help"],"description":"Prints this message or the help of the given subcommand(s)","hidden":false,"options":[],"args":[{"name":"subcommand(s)","description":null,"optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]}]},{"names":["override"],"description":"Modify directory toolchain overrides","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[{"names":["list"],"description":"List directory toolchain overrides","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["set"],"description":"Set the override toolchain for a directory","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Toolchain name","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"subcommands":[]},{"names":["unset"],"description":"Remove the override toolchain for a directory","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["help"],"description":"Prints this message or the help of the given subcommand(s)","hidden":false,"options":[],"args":[{"name":"subcommand(s)","description":null,"optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]}]},{"names":["run"],"description":"Run a command with an environment configured for a given toolchain","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--install"],"description":"Install the requested toolchain if needed","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Toolchain name","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]},{"name":"command","description":null,"optional":false,"variadic":true,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]},{"names":["which"],"description":"Display which binary will be run for a given command","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--toolchain"],"description":"Toolchain name","args":[{"name":"toolchain","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["doc"],"description":"Open the documentation for the current toolchain","hidden":false,"options":[{"names":["--alloc"],"description":"The Rust core allocation and collections library","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--book"],"description":"The Rust Programming Language book","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--cargo"],"description":"The Cargo Book","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--core"],"description":"The Rust Core Library","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--edition-guide"],"description":"The Rust Edition Guide","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--embedded-book"],"description":"The Embedded Rust Book","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--nomicon"],"description":"The Dark Arts of Advanced and Unsafe Rust Programming","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--path"],"description":"Only print the path to the documentation","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--proc_macro"],"description":"A support library for macro authors when defining new macros","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--reference"],"description":"The Rust Reference","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--rust-by-example"],"description":"A collection of runnable examples that illustrate various Rust concepts and standard libraries","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--rustc"],"description":"The compiler for the Rust programming language","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--rustdoc"],"description":"Generate documentation for Rust projects","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--std"],"description":"Standard library API documentation","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--test"],"description":"Support code for rustc's built in unit-test and micro-benchmarking framework","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--unstable-book"],"description":"--unstable-book","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--toolchain"],"description":"Toolchain name","args":[{"name":"toolchain","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"topic","description":"Topic such as 'core', 'fn', 'usize', 'eprintln!', 'core::arch', 'alloc::format!', 'std::fs', 'std::fs::read_dir', 'std::io::Bytes', 'std::iter::Sum', 'std::io::error::Result' etc","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["bash","-c","find $(rustup docs --path | sed -e \"s|index\\.html|std|\") $(rustup docs --path | sed -e \"s|index\\.html|alloc|\") $(rustup docs --path | sed -e \"s|index\\.html|core|\") | grep \"\\.html\" | sed -E -e \"s|^(.*)/html/||\" -e \"s|\\.html||\" -e \"s|/|::|g\" -e \"s/constant\\.|trait\\.|struct\\.|macro\\.|fn\\.|keyword\\.|primitive\\.|type\\.|enum\\.|union\\.|traitalias\\.|::index$|^(.*)::all$//\" -e \"/^$/d\""]}]}],"subcommands":[]},{"names":["man"],"description":"View the man page for a given command","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--toolchain"],"description":"Toolchain name","args":[{"name":"toolchain","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["self"],"description":"Modify the rustup installation","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[{"names":["update"],"description":"Download and install updates to rustup","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["uninstall"],"description":"Uninstall rustup","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["upgrade-data"],"description":"Upgrade the internal data format","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["help"],"description":"Prints this message or the help of the given subcommand(s)","hidden":false,"options":[],"args":[{"name":"subcommand(s)","description":null,"optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]}]},{"names":["set"],"description":"Alter rustup settings","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[{"names":["auto-self-update"],"description":"The rustup auto self update mode","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"auto-self-update-mode","description":null,"optional":true,"variadic":false,"template":[],"suggestions":[{"names":["enable"],"description":null},{"names":["disable"],"description":null},{"names":["check-only"],"description":null}],"generators":[]}],"subcommands":[]},{"names":["default-host"],"description":"The triple used to identify toolchains when not specified","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"host-triple","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","target","list"]}]}],"subcommands":[]}]},{"names":["completions"],"description":"Generate tab-completion scripts for your shell","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"shell","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["zsh"],"description":null},{"names":["bash"],"description":null},{"names":["fish"],"description":null},{"names":["powershell"],"description":null},{"names":["elvish"],"description":null}],"generators":[]},{"name":"command","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["rustup"],"description":null},{"names":["cargo"],"description":null}],"generators":[]}],"subcommands":[]},{"names":["help"],"description":"Prints this message or the help of the given subcommand(s)","hidden":false,"options":[],"args":[{"name":"subcommand","description":null,"optional":true,"variadic":true,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]}],"name":"rustup"} \ No newline at end of file +{"description":"The Rust toolchain installer","options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-q","--quiet"],"description":"Disable progress output","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-v","--verbose"],"description":"Enable verbose output","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Release channel (e.g. +stable) or custom toolchain to set override","optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[{"names":["show"],"description":"Show the active and installed toolchains or profiles","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[{"names":["active-toolchain"],"description":"Show the active toolchain","hidden":false,"options":[],"args":[],"subcommands":[]},{"names":["home"],"description":"Display the computed value of RUSTUP_HOME","hidden":false,"options":[],"args":[],"subcommands":[]},{"names":["profile"],"description":"Show the current profile","hidden":false,"options":[],"args":[],"subcommands":[]},{"names":["keys"],"description":"Display the known PGP keys","hidden":false,"options":[],"args":[],"subcommands":[]},{"names":["help"],"description":"Prints this message or the help of the given subcommand(s)","hidden":false,"options":[],"args":[],"subcommands":[]}]},{"names":["update"],"description":"Update Rust toolchains and rustup","hidden":false,"options":[{"names":["--force"],"description":"Force an update, even if some components are missing","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--force-non-host"],"description":"Install toolchains that require an emulator. See https://github.com/rust-lang/rustup/wiki/Non-host-toolchains","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--no-self-update"],"description":"Don't perform self update when running the `rustup update` command","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Toolchain name. For more information see `rustup help toolchain`","optional":true,"variadic":true,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"subcommands":[]},{"names":["check"],"description":"Check for updates to Rust toolchains and rustup","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Toolchain name. For more information see `rustup help toolchain`","optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]},{"names":["default"],"description":"Sets the default toolchain to the one specified. If the toolchain is not already installed then it is installed first","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Toolchain name","optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"subcommands":[]},{"names":["target"],"description":"Modify a toolchain's supported targets","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[{"names":["list"],"description":"List installed and available targets","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["add"],"description":"Add a target to a Rust toolchain","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--toolchain"],"description":"Toolchain name, such as 'stable', 'nightly', or '1.8.0'","args":[{"name":"toolchain","description":"Toolchain name","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"target","description":"Target triple","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","target","list"]}]}],"subcommands":[]},{"names":["remove"],"description":"Remove a target from a Rust toolchain","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--toolchain"],"description":"Toolchain name, such as 'stable', 'nightly', or '1.8.0'","args":[{"name":"toolchain","description":"Toolchain name","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"target","description":"Target triple","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","target","list"]}]}],"subcommands":[]},{"names":["help"],"description":"Prints this message or the help of the given subcommand(s)","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"subcommand","description":null,"optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]}]},{"names":["toolchain"],"description":"Modify or query the installed toolchains","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[{"names":["list"],"description":"List installed toolchains","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["install"],"description":"Install or update a given toolchain","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-t","--target"],"description":"Add specific targets on installation","args":[{"name":"targets","description":null,"optional":false,"variadic":true,"template":[],"suggestions":[],"generators":[{"script":["rustup","target","list"]}]}],"required":false,"repeatable":false,"hidden":false},{"names":["-c","--component"],"description":"Add specific components on installation","args":[{"name":"components","description":null,"optional":false,"variadic":true,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--profile"],"description":"Installation profile: minimal, default, complete","args":[{"name":"profile","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["minimal"],"description":null},{"names":["default"],"description":null},{"names":["complete"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--allow-downgrade"],"description":"Allow rustup to downgrade the toolchain to satisfy your component choice","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--force"],"description":"Force an update, even if some components are missing","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--no-self-update"],"description":"Don't perform self update when running the`rustup toolchain install` command","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Toolchain name","optional":false,"variadic":true,"template":[],"suggestions":[],"generators":[{"script":["bash","-c","if command -v gh > /dev/null; then gh api -H \"Accept: application/vnd.github+json\" /repos/rust-lang/rust/releases; else curl -sfL -H \"Accept: application/vnd.github+json\" https://api.github.com/repos/rust-lang/rust/releases; fi"]}]}],"subcommands":[]},{"names":["uninstall"],"description":"Uninstall a toolchain","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Toolchain name","optional":false,"variadic":true,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"subcommands":[]},{"names":["link"],"description":"Create a custom toolchain by symlinking to a directory","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Custom toolchain name","optional":false,"variadic":true,"template":[],"suggestions":[],"generators":[]},{"name":"path","description":"Path to the directory","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]},{"names":["help"],"description":"Prints this message or the help of the given subcommand(s)","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"subcommand","description":null,"optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]}]},{"names":["component"],"description":"Modify a toolchain's installed components","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[{"names":["list"],"description":"List installed and available components","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["add"],"description":"Add a component to a Rust toolchain","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["remove"],"description":"Remove a component from a Rust toolchain","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["help"],"description":"Prints this message or the help of the given subcommand(s)","hidden":false,"options":[],"args":[{"name":"subcommand(s)","description":null,"optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]}]},{"names":["override"],"description":"Modify directory toolchain overrides","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[{"names":["list"],"description":"List directory toolchain overrides","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["set"],"description":"Set the override toolchain for a directory","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Toolchain name","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"subcommands":[]},{"names":["unset"],"description":"Remove the override toolchain for a directory","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["help"],"description":"Prints this message or the help of the given subcommand(s)","hidden":false,"options":[],"args":[{"name":"subcommand(s)","description":null,"optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]}]},{"names":["run"],"description":"Run a command with an environment configured for a given toolchain","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--install"],"description":"Install the requested toolchain if needed","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"toolchain","description":"Toolchain name","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]},{"name":"command","description":null,"optional":false,"variadic":true,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]},{"names":["which"],"description":"Display which binary will be run for a given command","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--toolchain"],"description":"Toolchain name","args":[{"name":"toolchain","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["doc"],"description":"Open the documentation for the current toolchain","hidden":false,"options":[{"names":["--alloc"],"description":"The Rust core allocation and collections library","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--book"],"description":"The Rust Programming Language book","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--cargo"],"description":"The Cargo Book","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--core"],"description":"The Rust Core Library","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--edition-guide"],"description":"The Rust Edition Guide","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--embedded-book"],"description":"The Embedded Rust Book","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--nomicon"],"description":"The Dark Arts of Advanced and Unsafe Rust Programming","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--path"],"description":"Only print the path to the documentation","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--proc_macro"],"description":"A support library for macro authors when defining new macros","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--reference"],"description":"The Rust Reference","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--rust-by-example"],"description":"A collection of runnable examples that illustrate various Rust concepts and standard libraries","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--rustc"],"description":"The compiler for the Rust programming language","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--rustdoc"],"description":"Generate documentation for Rust projects","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--std"],"description":"Standard library API documentation","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--test"],"description":"Support code for rustc's built in unit-test and micro-benchmarking framework","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--unstable-book"],"description":"The Unstable Book","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--toolchain"],"description":"Toolchain name","args":[{"name":"toolchain","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"topic","description":"Topic such as 'core', 'fn', 'usize', 'eprintln!', 'core::arch', 'alloc::format!', 'std::fs', 'std::fs::read_dir', 'std::io::Bytes', 'std::iter::Sum', 'std::io::error::Result' etc","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["bash","-c","find $(rustup docs --path | sed -e \"s|index\\.html|std|\") $(rustup docs --path | sed -e \"s|index\\.html|alloc|\") $(rustup docs --path | sed -e \"s|index\\.html|core|\") | grep \"\\.html\" | sed -E -e \"s|^(.*)/html/||\" -e \"s|\\.html||\" -e \"s|/|::|g\" -e \"s/constant\\.|trait\\.|struct\\.|macro\\.|fn\\.|keyword\\.|primitive\\.|type\\.|enum\\.|union\\.|traitalias\\.|::index$|^(.*)::all$//\" -e \"/^$/d\""]}]}],"subcommands":[]},{"names":["man"],"description":"View the man page for a given command","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--toolchain"],"description":"Toolchain name","args":[{"name":"toolchain","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","toolchain","list"]}]}],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["self"],"description":"Modify the rustup installation","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[{"names":["update"],"description":"Download and install updates to rustup","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["uninstall"],"description":"Uninstall rustup","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["upgrade-data"],"description":"Upgrade the internal data format","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[]},{"names":["help"],"description":"Prints this message or the help of the given subcommand(s)","hidden":false,"options":[],"args":[{"name":"subcommand(s)","description":null,"optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]}]},{"names":["set"],"description":"Alter rustup settings","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[],"subcommands":[{"names":["auto-self-update"],"description":"The rustup auto self update mode","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"auto-self-update-mode","description":null,"optional":true,"variadic":false,"template":[],"suggestions":[{"names":["enable"],"description":null},{"names":["disable"],"description":null},{"names":["check-only"],"description":null}],"generators":[]}],"subcommands":[]},{"names":["default-host"],"description":"The triple used to identify toolchains when not specified","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Prints version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"host-triple","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["rustup","target","list"]}]}],"subcommands":[]}]},{"names":["completions"],"description":"Generate tab-completion scripts for your shell","hidden":false,"options":[{"names":["-h","--help"],"description":"Prints help information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"shell","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["zsh"],"description":null},{"names":["bash"],"description":null},{"names":["fish"],"description":null},{"names":["powershell"],"description":null},{"names":["elvish"],"description":null}],"generators":[]},{"name":"command","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["rustup"],"description":null},{"names":["cargo"],"description":null}],"generators":[]}],"subcommands":[]},{"names":["help"],"description":"Prints this message or the help of the given subcommand(s)","hidden":false,"options":[],"args":[{"name":"subcommand","description":null,"optional":true,"variadic":true,"template":[],"suggestions":[],"generators":[]}],"subcommands":[]}],"name":"rustup"} \ No newline at end of file