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

list named argument in MAIN #6301

Open
p6rt opened this issue Jun 1, 2017 · 1 comment
Open

list named argument in MAIN #6301

p6rt opened this issue Jun 1, 2017 · 1 comment

Comments

@p6rt
Copy link

@p6rt p6rt commented Jun 1, 2017

Migrated from rt.perl.org#131476 (status was 'new')

Searchable as RT131476$

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Jun 1, 2017

From @MARTIMM

Hi

I had some discussion on the perl6 users list involving the use of a
List named argument. The example below works correct

perl6 -e 'sub MAIN (List :$dirs=[]) { .say for flat @​$dirs.List».split​:
/","/ }' --dirs=d1 --dirs=d2 --dirs=d3,d4,d5

d1
d2
d3
d4
d5

Giving the --dirs option on command line once however, it shows the
usage message which it shouldn't.

This is Rakudo version 2017.05-338-gaca1929 built on MoarVM version
2017.05-25-g62bc54e implementing Perl 6.c.

Regards
Marcel

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