Skip to content

Commit 94b8575

Browse files
Merge pull request #15 from lmbelo/master
Fixing issue to key-only last option
2 parents 1bd9821 + b0b3a62 commit 94b8575

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Src/VSoft.CommandLine.Parser.pas

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ procedure TCommandLineParser.InternalParse(const values: TStrings; const parseRe
197197
value := ''
198198
else
199199
Inc(i);
200+
end
201+
else
202+
begin
203+
//the last option with no value just a key
204+
key := value;
205+
value := '';
200206
end;
201207
end
202208
else

0 commit comments

Comments
 (0)