cmd query

This commit is contained in:
Yase 2016-06-01 16:05:43 +02:00
parent 66e57bf57c
commit 7dbf7e7d39

View file

@ -61,7 +61,17 @@ fn main() {
} }
}, },
Some("exec") => { Some("exec") => {
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"), _ => println!("Nothing implemented yet"),
} }
} }
}