flags #5

Merged
statzitz merged 5 commits from flags into main 2024-04-06 00:47:55 +02:00
Showing only changes of commit f3a03ab4d1 - Show all commits

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