-
Notifications
You must be signed in to change notification settings - Fork 891
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
Added help for rustup toolchain link
as documented in issue #954.
#1017
Changes from 1 commit
ffc4738
27202ac
bdc7c3a
c28b805
bd7c369
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 30,7 @@ the same as `rustup toolchain install`. | |
'toolchain' specifies a toolchain name, such as 'stable', 'nightly', | ||
or '1.8.0'. For more information see `rustup help toolchain`."; | ||
|
||
pub static TOOLCHAIN_INSTALL_HELP: &'static str = | ||
pub static INSTALL_HELP: &'static str = | ||
r" | ||
Installs a specific rust toolchain. | ||
|
||
|
@@ -78,7 78,23 @@ inferred, so the above could be written: | |
$ rustup default stable-msvc | ||
|
||
Toolchain names that don't name a channel instead can be used to name | ||
custom toolchains with the `rustup toolchain link` command."; | ||
custom toolchains with the `rustup toolchain link` command. This can | ||
also be used to symlink toolchains from local builds. For more | ||
information see `rustup toolchain help link`."; | ||
|
||
pub static TOOLCHAIN_LINK_HELP: &'static str = | ||
r" | ||
Symlinks a toolchain from a local directory specified by 'path' and | ||
gives it a custom name specified by 'toolchain' if it does not name a | ||
standard release channel. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure I understand what this means? The text just below seems to imply that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (Okay, I don't fully understand all the code but here is what I think is correct.) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The call order is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I see. Then I think the text should be clearer about this. How about:
Also, I notice the text currently says
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Good point. Your explanation is much clearer than mine.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In fact, I wonder if we should also repeat some, if not all, of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Currently,
I feel that this is sufficient information to indicate to the user whether |
||
|
||
'toolchain' specifies a toolchain name, such as 'stable', 'nightly', | ||
or '1.8.0'. For more information see `rustup help toolchain`. | ||
|
||
'path' is specified as `/path/to/rust/build/$triple/stage1` where | ||
'$triple' should be replaced with the desired triple. Only a build of | ||
`rustc` is required to be present at the given 'path'. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"; | ||
|
||
pub static OVERRIDE_HELP: &'static str = | ||
r" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two sentences seem slightly redundant. What about something like "rustup can also manage symlinked local toolchain builds, which is often used for developing Rust itself. For more information see
rustup toolchain help link
.