set the command

This commit is contained in:
primardj 2024-04-05 23:41:24 +01:00
parent f12f786f46
commit f3a03ab4d1

View file

@ -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>() {