cmd query

This commit is contained in:
Yase 2016-06-01 16:05:43 +02:00
parent 66e57bf57c
commit 7dbf7e7d39
1 changed files with 12 additions and 2 deletions

View File

@ -61,7 +61,17 @@ fn main() {
}
},
Some("exec") => {
},
_ => println!("Nothing implemented yet"),
let subcmd = rt.cli().subcommand_matches("exec").unwrap();
let itr = subcmd.values_of_os("add").unwrap();
if subcmd.is_present("command") {
let string = subcmd.value_of("command").unwrap();
println!("{:?}", string);
else {
panic!("Reached unreachable Code");
}
},
_ => println!("Nothing implemented yet"),
}
}
}