cmd query
This commit is contained in:
parent
66e57bf57c
commit
7dbf7e7d39
1 changed files with 12 additions and 2 deletions
|
@ -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"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue