Hi All,
https://modules.raku.org/dist/Getopt::Long:cpan:LEONT
How do I handle stray entries (unknown options) without
crashing? Is there some grab bag I can stick all
those into?
$ GetOptLongTest.pl6 --SomethingExtra
Unknown option SomethingExtra
in sub get-option at
/opt/rakudo-pkg/share/perl6/site/sources/175FC6EC5E943AF0DBF895890FBA6238779D9EC1
(Getopt::Long) line 294
in block at
/opt/rakudo-pkg/share/perl6/site/sources/175FC6EC5E943AF0DBF895890FBA6238779D9EC1
(Getopt::Long) line 355
in method get-options at
/opt/rakudo-pkg/share/perl6/site/sources/175FC6EC5E943AF0DBF895890FBA6238779D9EC1
(Getopt::Long) line 287
in sub get-options-from at
/opt/rakudo-pkg/share/perl6/site/sources/175FC6EC5E943AF0DBF895890FBA6238779D9EC1
(Getopt::Long) line 403
in sub get-options at
/opt/rakudo-pkg/share/perl6/site/sources/175FC6EC5E943AF0DBF895890FBA6238779D9EC1
(Getopt::Long) line 407
in sub GetCommandLine at ./GetOptLongTest.pl6 line 48
in block <unit> at ./GetOptLongTest.pl6 line 56
Many thanks,
-T