We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d820355 commit eee7accCopy full SHA for eee7acc
src/librust/rust.rs
@@ -238,6 +238,12 @@ fn usage() {
238
239
pub fn main() {
240
let os_args = os::args();
241
+
242
+ if (os_args.len() > 1 && (os_args[1] == ~"-v" || os_args[1] == ~"--version")) {
243
+ rustc::version(os_args[0]);
244
+ unsafe { exit(0); }
245
+ }
246
247
let args = os_args.tail();
248
249
if !args.is_empty() {
0 commit comments