We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SuperMAIN functions correctly with a module like
use SuperMAIN; sub MAIN(Str :$named, Str :$other-named) { say $named; }
which can be used as follows:
$ raku SuperMAIN-test.raku -n test_name test_name
But if I add an enum option like this
use SuperMAIN; enum Option <one two>; sub MAIN(Str :$named, Str :$other-named, Option :$option ) { say $named; }
It no longer works:
$ raku SuperMAIN-test.raku -o one Usage: SuperMAIN-test.raku [--named=<Str>] [--other-named=<Str>] [--option=<Option> (one two)]
The presence of that enum option also stops other options from being processed correctly:
$ raku SuperMAIN-test.raku -n test_name --option=one Usage: SuperMAIN-test.raku [--named=<Str>] [--other-named=<Str>] [--option=<Option> (one two)]
The form built in to Raku still works, however:
$ raku SuperMAIN-test.raku --named=test_name --option=one test_name
The text was updated successfully, but these errors were encountered:
I need to look a little deeper into this one, but It's certainly something to add to the tests.
Sorry, something went wrong.
No branches or pull requests
SuperMAIN functions correctly with a module like
which can be used as follows:
But if I add an enum option like this
It no longer works:
The presence of that enum option also stops other options from being processed correctly:
The form built in to Raku still works, however:
The text was updated successfully, but these errors were encountered: