Commit ed88287e authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub
Browse files

Merge pull request #1 from ids1024/arg

Do not eat - argument
parents 86a002c9 d5668e7c
......@@ -246,7 +246,7 @@ impl ArgParser {
_ => self.invalid.push(Param::Long(arg.to_owned())),
}
}
} else if arg.starts_with("-") {
} else if arg.starts_with("-") && arg != "-" {
let mut chars = arg[1..].chars();
while let Some(ch) = chars.next() {
match self.params.get_mut(&ch) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment