Skip to content
MAIN? Getopt semantics? Why not both?
Other
  1. Other 100.0%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Getopt
t
.travis.yml
META6.json
README.md

README.md

Getopt::Type

MAIN? Getopt semantics? Why not both?

use Getopt::Type;

sub MAIN(*%opts where getopt(<f|force v|verbose>)) {
    say "Forcing!"   if %opts<force>;
    say "Verbosing!" if %opts<verbose>;
    say %opts.perl;
}

# try `perl6 -Ilib README.md -fv`
You can’t perform that action at this time.