]> git.proxmox.com Git - cargo.git/commit - src/bin/cargo/commands/uninstall.rs
Auto merge of #8456 - ehuss:embedded-man, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 3 Aug 2020 21:20:46 +0000 (21:20 +0000)
committerbors <bors@rust-lang.org>
Mon, 3 Aug 2020 21:20:46 +0000 (21:20 +0000)
commit2732539e8548fd0db65ad51ceb049f23d2f3b931
tree2c125922bef92d45c417d5413df69a752279639e
parente9281208cdcf933ff24f44104aa7df06aa89d1a8
parent0d6881c5bce252df34d4a4263878e78b8f56efab
Auto merge of #8456 - ehuss:embedded-man, r=alexcrichton

Display embedded man pages for built-in commands.

This changes `cargo help COMMAND` to display the man page for the given command.  `cargo COMMAND --help` continues to show the basic clap output.

The man pages are embedded in the executable in a compressed format. There's also a copy of the man pages in text format for platforms that do not have the `man` executable (like Windows).

It is unfortunate to check in more pre-generated files. I hope in the future that the usage of asciidoc can be replaced with something else (possibly a custom markdown-based solution).

cc #6104