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

Capture in `sub MAIN` doesn't work for named args #2106

zoffixznet opened this issue Jul 21, 2018 · 0 comments


None yet
2 participants
Copy link

commented Jul 21, 2018

I expected the capture to take all possible arguments, however, it appears to behave as a positional slurpy only and rejects any named args requiring additional use of *%:

<Zoffix_> m: @*ARGS = '-z'; sub MAIN(|) {}
<camelia> rakudo-moar cb2ea9328: OUTPUT: «Usage:␤  <tmp> <Any> ␤»
<Zoffix_> m: @*ARGS = '42'; sub MAIN(|, *%) {}
<camelia> rakudo-moar cb2ea9328: ( no output )
<Zoffix_> m: @*ARGS = '42'; sub MAIN(|) {}
<camelia> rakudo-moar cb2ea9328: ( no output )

@lucasbuchala lucasbuchala added the CLI label Mar 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.