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
Make it easier to set up custom argument parsers #2279
Comments
That sounds sensible enough. Something that takes a |
Is it possible to create a contextual variable in an outer scope though? |
No idea what that is. Do you mean dynamic? One way would be to stick it into
|
Yeah I meant dynamic. I'm not sure that solution really is better than our current, at least |
Does that even matter? Isn't there only one MAIN (even if it's a bunch of multies) that would get processed? And In fact, it was global briefly before, but was removed so that we don't pay for its initialization when the user isn't gonna use it. |
Also, we could have something similar to how you can do my %*SUB-MAIN-OPTS = :processor<Awesome>; And that would automatically load |
To be honest, the old (pre 2018.06) |
@Leont would you be able to take new MAIN helpers out for a spin and see if they resolve this ticket? |
Yeah it looks sensible. |
Based off http://colabti.org/irclogger/irclogger_log/perl6?date=2018-09-15#l316
I'm imagining a module that sets something in
%*SUB-MAIN-OPTS
(e.g. assigns a customCallable
to some key) affect how the arguments are parsed. I'm hoping that's possible to do in a way that the use of that module would just be able touse GetOpt::Whatever
and not have to modifySUB-MAIN-OPTS
themselves.The text was updated successfully, but these errors were encountered: