set the command
This commit is contained in:
parent
f12f786f46
commit
f3a03ab4d1
1 changed files with 6 additions and 1 deletions
|
@ -39,6 +39,7 @@ fn main() {
|
|||
|
||||
|
||||
let mut i = 0;
|
||||
let mut command;
|
||||
|
||||
for val in arg_parser.iter() {
|
||||
if i == 0 {
|
||||
|
@ -58,7 +59,11 @@ fn main() {
|
|||
exit(100);
|
||||
}
|
||||
}
|
||||
// TODO: Set the command if it is given
|
||||
else if i == 1 {
|
||||
command = val;
|
||||
dbg!(command);
|
||||
i += 1;
|
||||
}
|
||||
// TODO: Exec the command on all given services.
|
||||
else if i == 3 {
|
||||
svwait_var = match val.parse::<i32>() {
|
||||
|
|
Loading…
Reference in a new issue