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

Rustup lists commands multiple times #1795

Closed
ralfbiedert opened this issue Apr 23, 2019 · 2 comments · Fixed by #1796
Closed

Rustup lists commands multiple times #1795

ralfbiedert opened this issue Apr 23, 2019 · 2 comments · Fixed by #1796
Labels

Comments

@ralfbiedert
Copy link

Problem

Typing rustup prints the commends self and set twice.

Steps

  1. Type rustup
  2. Observe the output
rustup 1.18.0 (8603e2c56 2019-04-22)
The Rust toolchain installer

USAGE:
    rustup [FLAGS] <SUBCOMMAND>

FLAGS:
    -v, --verbose    Enable verbose output
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    show           Show the active and installed toolchains
    update         Update Rust toolchains and rustup
    default        Set the default toolchain
    toolchain      Modify or query the installed toolchains
    target         Modify a toolchain's supported targets
    component      Modify a toolchain's installed components
    override       Modify directory toolchain overrides
    run            Run a command with an environment configured for a given toolchain
    which          Display which binary will be run for a given command
    doc            Open the documentation for the current toolchain
    man            View the man page for a given command
    self           Modify the rustup installation
    set            Alter rustup settings
    self           Modify the rustup installation
    set            Alter rustup settings
    completions    Generate completion scripts for your shell
    help           Prints this message or the help of the given subcommand(s)

DISCUSSION:
    rustup installs The Rust Programming Language from the official
    release channels, enabling you to easily switch between stable,
    beta, and nightly compilers and keep them updated. It makes
    cross-compiling simpler with binary builds of the standard library
    for common platforms.

    If you are new to Rust consider running `rustup doc --book` to
    learn Rust.

Possible Solution(s)

Notes

Output of rustup --version: rustup 1.18.0 (8603e2c 2019-04-22)
Output of rustup show:

Default host: x86_64-apple-darwin

installed toolchains
--------------------

stable-x86_64-apple-darwin
nightly-x86_64-apple-darwin (default)

installed targets for active toolchain
--------------------------------------

wasm32-unknown-unknown
x86_64-apple-darwin

active toolchain
----------------

nightly-x86_64-apple-darwin (default)
rustc 1.36.0-nightly (6d599337f 2019-04-22)
@kinnison
Copy link
Contributor

I can confirm this on Linux too. Interesting. Thanks for the report

@kinnison
Copy link
Contributor

Looks like a bit of a snafu from when we rationalised some of the code, I'll sort a PR to fix this in a few mins.

kinnison added a commit to kinnison/rustup that referenced this issue Apr 23, 2019
`rustup self` and `rustup set` were duplicated.
`rustup telemetry` while not displayed by default should have
been removed with the rest of the telemetry support.

Fixes rust-lang#1795

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants