generated from OBJNULL/Dockerized-Rust
Compare commits
No commits in common. "432cd5f6956c3a490ebf1cbe77308383bfe52577" and "f94f0008b9861562c9a240c89f61fd50721ea5f9" have entirely different histories.
432cd5f695
...
f94f0008b9
1 changed files with 1 additions and 11 deletions
|
@ -25,17 +25,7 @@ impl Arguments {
|
||||||
// Going through all arguments
|
// Going through all arguments
|
||||||
for i in 0..args.len() {
|
for i in 0..args.len() {
|
||||||
// Checking if it's an argument
|
// 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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue