#![feature(box_syntax)]
#![feature(dynamic_lib)]
#![feature(libc)]
-#![feature(path_ext)]
#![feature(rustc_private)]
-#![feature(slice_splits)]
#![feature(str_char)]
#![feature(test)]
-#![feature(vec_push_all)]
-#![feature(path_components_peek)]
#![deny(warnings)]
optflag("h", "help", "show this message"));
let (argv0, args_) = args.split_first().unwrap();
- if args[1] == "-h" || args[1] == "--help" {
+ if args.len() == 1 || args[1] == "-h" || args[1] == "--help" {
let message = format!("Usage: {} [OPTIONS] [TESTNAME...]", argv0);
println!("{}", getopts::usage(&message, &groups));
println!("");