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",
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 * ~~
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:
>
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",