diff options
| author | Michael Gattozzi <mgattozzi@gmail.com> | 2017-01-26 01:35:00 -0500 |
|---|---|---|
| committer | Michael Gattozzi <mgattozzi@gmail.com> | 2017-01-26 01:35:00 -0500 |
| commit | bb34856e9d0e480758bdc3afaad60654435d12b3 (patch) | |
| tree | 75505ccf0201310c9435fa0f492ca7e03d149b5a | |
| parent | 6991938d3e91c200de7b6c6ef08f9600c075c89b (diff) | |
| download | rust-bb34856e9d0e480758bdc3afaad60654435d12b3.tar.gz rust-bb34856e9d0e480758bdc3afaad60654435d12b3.zip | |
Fix full path being output with `rustdoc -h`
rustdoc would output the full path to the binary when calling it with the `-h` or `--help` flags. This is undesired behavior. It has been replaced with a hardcoded string `rustdoc` to fix the issue. Fixes #39310
| -rw-r--r-- | src/librustdoc/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs index 503ef4c3183..84f69cd3504 100644 --- a/src/librustdoc/lib.rs +++ b/src/librustdoc/lib.rs @@ -193,7 +193,7 @@ pub fn main_args(args: &[String]) -> isize { nightly_options::check_nightly_options(&matches, &opts()); if matches.opt_present("h") || matches.opt_present("help") { - usage(&args[0]); + usage("rustdoc"); return 0; } else if matches.opt_present("version") { rustc_driver::version("rustdoc", &matches); |
