-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
nothing before --
should appear in ARGS
#12679
Comments
No, |
Ok, but would you agree that in case |
Yes. |
Ok, I'll try to track this down then and submit a PR. |
Cool. The relevant code is in client.jl in process_options. ARGS should be assigned a copy of all string arguments after the |
Thanks for the lead! |
@rened if you are feeling ambitious, you could implement the behavior described here #10726 (comment). Although I suspect the one who implements the "correct" behavior will be the only one to actually use it. |
@jakebolewski excellent, I also wanted to suggest to allow multiple |
--
should appear in ARGS
that would not be standard unix behavior – argument parsing is expected to end on i agree that the disappearance of the for anyone who's investigating this further, I also discovered:
where the unknown option was |
Moves all the cmdline option error handling code from client.jl to repl.c.
better cmdline option error handling (fixes #12679)
I find the current behavior of command line argument parsing a bit in-consistent:
It seems that, as
--
is optional, unknown parameters (like the-now
) end up inARGS
despite them being before the--
. That"@show ARGS..."
ends up inARGS
is a bug IMHO.To simplify the situation, I would like to propose to make the
--
compulsory, i.e. nothing before--
can ever appear inARGS
.The text was updated successfully, but these errors were encountered: