Re: How to process command line options

2020-01-06 Thread ToddAndMargo via perl6-users
On 2020-01-05 14:32, David Santiago wrote: Hello. I'm following https://docs.raku.org/language/5to6-nutshell#Getopt::Long but i still haven't figured it out how do i use a constraint in a named parameter when processing a command line. I have this piece of code: multi sub MAIN("apt",

Re: How to process command line options

2020-01-06 Thread David Santiago
Thanks for the reply! That was the issue, the missing '=', and the order. I thought that because it was a named parameter the order wouldn't matter. Regarding the second question, on how to have the same switch multiple times, using a @ sigil doesn't work: Code: subset Layout of Str where * ~~

Re: How to process command line options

2020-01-06 Thread Patrick Spek via perl6-users
On Sun, 5 Jan 2020 22:32:02 + David Santiago wrote: > Hello. > > I'm following > https://docs.raku.org/language/5to6-nutshell#Getopt::Long but i still > haven't figured it out how do i use a constraint in a named parameter > when processing a command line. > > I have this piece of code: >

Re: How to process command line options

2020-01-05 Thread ToddAndMargo via perl6-users
On 2020-01-05 14:32, David Santiago wrote: Hello. I'm following https://docs.raku.org/language/5to6-nutshell#Getopt::Long but i still haven't figured it out how do i use a constraint in a named parameter when processing a command line. I have this piece of code: multi sub MAIN("apt",