Skip to content

Instantly share code, notes, and snippets.

@ugexe

ugexe/script.pl6 Secret

Created September 5, 2016 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ugexe/d0800e4e5e9bc31fd482910a761290e1 to your computer and use it in GitHub Desktop.
Save ugexe/d0800e4e5e9bc31fd482910a761290e1 to your computer and use it in GitHub Desktop.
script --name=foo --ver=1 --auth=bar --test=300
$ script --name=foo --ver=1 --auth=bar --test=300
Required named parameter 'name' not passed
in sub MAIN at /home/nickl/.rakudobrew/bin/../moar-2016.06/install/share/perl6/site/bin/script line 10
in block <unit> at /home/nickl/.rakudobrew/bin/../moar-2016.06/install/share/perl6/site/bin/script line 2
sub MAIN(:$name, :$auth, :$ver, :$test, *@, *%) {
say "name: $name";
say "auth: $auth";
say "ver: $ver";
say "test: $test";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment