Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiler command-line parsing: -internal-debug #1438

Merged
merged 1 commit into from
Aug 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 4 additions & 5 deletions sources/environment/commands/command-line.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -1095,15 +1095,14 @@ define method parameter-type-name
end method parameter-type-name;

define method parse-next-argument
(context :: <server-context>, type == $keyword-list-type,
text :: <string>,
(context :: <server-context>, type == $keyword-list-type, text :: <string>,
#key start :: <integer> = 0, end: stop = #f)
=> (value :: <sequence>, next-index :: <integer>)
let (keyword, next-index)
let (word, next-index)
= parse-next-word(text, start: start, end: stop);
if (keyword)
if (word)
let options
= tokenize-string(text, $option-separator, start: start, end: stop);
= tokenize-string(text, $option-separator, start: start, end: next-index);
values(map(curry(as, <symbol>), options), next-index)
else
parse-error("Missing keyword argument")
Expand Down