Skip to content
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.

Commit

Permalink
Stop swallowing "--" after the first one is processed by command parser
Browse files Browse the repository at this point in the history
Previously, the command parser would swallow all "--" after the first
one. For me, this manifested itself in not allowing corral to be used
with lldb "corral exec -- lldb ponyc -- $(ponyc) -V=0 -o ./build/
./utility" since the second "--" is required to be passed to lldb.

This change is dependency for a PR being submitted to corral to allow
use of corral with lldb (for debugging ponyc itself).
  • Loading branch information
KittyMac committed May 6, 2020
1 parent 3d192f4 commit 9ab2aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/command_parser.pony
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class CommandParser

while tokens.size() > 0 do
let token = try tokens.shift()? else "" end
if token == "--" then
if (token == "--") and (opt_stop == false) then
opt_stop = true

elseif not opt_stop and (token.compare_sub("--", 2, 0) == Equal) then
Expand Down

0 comments on commit 9ab2aab

Please sign in to comment.