Compare commits

...

2 commits

View file

@ -25,7 +25,17 @@ impl Arguments {
// Going through all arguments
for i in 0..args.len() {
// Checking if it's an argument
if args[i].starts_with("--") {
if !args[i].starts_with("--") {
continue;
}
// Is there something else after this?
if i + 1 > args.len() {
result.push(Argument {
key: args[i].clone(),
val: String::new(),
});
continue;
}