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:
Brian Anderson
2014-05-12 15:39:07 -07:00
parent 2a7a39191a
commit 67fa90e48a
2 changed files with 10 additions and 9 deletions

View File

@@ -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;
}