Print 'rustc' and 'rustdoc' as the command name for --version
Instead of just blindly printing arg[0], use a constant string. Partial fix for #13582
This commit is contained in:
parent
2a7a39191a
commit
67fa90e48a
2 changed files with 10 additions and 9 deletions
|
|
@ -153,7 +153,7 @@ pub fn main_args(args: &[StrBuf]) -> int {
|
|||
usage(args[0].as_slice());
|
||||
return 0;
|
||||
} else if matches.opt_present("version") {
|
||||
rustc::driver::version(args[0].as_slice());
|
||||
rustc::driver::version("rustdoc");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue