-
Notifications
You must be signed in to change notification settings - Fork 36
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
Unpredictable behavior when printing from inside custom parse_item
function.
#61
Comments
This is fixed on latest master. Until I release a new version (hopefully soon) you can |
I believe I over simplified my minimal example. I checkout out master 224ce77 to be sure. The following works when arg_type = Foo, but not when arg_type = Bar. The issue seems to actually be having print statements in parse_item methods.
|
I see. After a short investigation, this seems like a Julia bug (still present in 0.7), whereby printing anything to stdout/stderr while the parsing is proceeding is causing all sorts of unexpected behavior. I'll try to find a minimal example and I'll open an issue. |
this is the culprit: JuliaLang/julia#27168 |
parse_item
function.
On Julia 0.6 running ArgParse 0.5.0
Reports too many arguments when running
julia foo.jl --foo foo bar
, but works fine if arg_type is replaced with String.The text was updated successfully, but these errors were encountered: