fix getopts when called without any argument

This commit is contained in:
Dietmar Maurer 2018-11-18 14:57:18 +01:00
parent a19f223dea
commit be45ccd203
1 changed files with 1 additions and 2 deletions

View File

@ -60,7 +60,7 @@ pub fn parse_arguments(
let mut skip = false;
loop {
while pos < args.len() {
if skip {
rest.push(args[pos].clone());
} else {
@ -127,7 +127,6 @@ pub fn parse_arguments(
}
pos += 1;
if pos >= args.len() { break; }
}
for i in 0..arg_param.len() {