This is the best I could get:
sub MAIN(Int :p($parm)!)
{
say "* parm=", $parm;
}
But:
$ raku test-par.raku
Usage:
test-par.raku -p[=Int]
It says the parameter is optional!
And indeed it is:
$ raku test-par.raku -p
* parm=True
So, what gives ?