generated from OBJNULL/Dockerized-Rust
Compare commits
2 commits
f94f0008b9
...
432cd5f695
Author | SHA1 | Date | |
---|---|---|---|
432cd5f695 | |||
894ef92ac3 |
1 changed files with 11 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue