-
Notifications
You must be signed in to change notification settings - Fork 884
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
Man pages #490
Comments
Yeah this should probably exist, though I'd like to have a solution that works reliably on Windows. |
Do the man pages get installed on Windows? Perhaps Unix platforms could display the man page using
|
I think it would make sense for upstream Rust to generate HTML versions of the man pages and include them in the docs. |
Based on existing commands I'd expect this to look like |
Is this already taken? Otherwise, I'd like to do it as a first contribution. |
@theindigamer It's all yours! |
Sorry if these questions sound very naive/elementary to you:
|
Maybe the need and the requirements for this feature could use some more thought? |
rustup doesn't install the toolchain-specific Rust man pages to the system so running
Yes. This is for the Rust toolchain man pages, like |
@theindigamer
Yes, I'd call in 'command' for consistency. The optional 'toolchain' arg will look like this one.
The man pages are located in the toolchain directory under Good luck! |
@sanmai-NL Personally, I also wish we could just discard the man pages, but it doesn't seem like a position that can be maintained. On Unix people expect man pages to exist, and some distros will just write them themselves if we don't provide them, so they are going to continue to be a thing I think, so I reluctantly think rustup should make them accessible. |
Apologies for the delay. I have some code written down for the |
@theindigamer The way I usually test is by running It's possible to break your own rustup installation this way but rustup is easy to reinstall when that happens. |
I have made the changes here: Should I submit a PR or are there other changes to be made? |
@theindigamer That looks about right! Please submit a PR. |
Fixed! |
It would be great to have a command of the form
rustup man [TOOLCHAIN] MAN_PAGE
that displays the man page
MAN_PAGE
(e.g. rustc, cargo) for either the active toolchain or the specifiedTOOLCHAIN
if given.The text was updated successfully, but these errors were encountered: