Skip to content
/ Getopt-Type Public
forked from tadzik/Getopt-Type

MAIN? Getopt semantics? Why not both?

Notifications You must be signed in to change notification settings

JJ/Getopt-Type

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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`

About

MAIN? Getopt semantics? Why not both?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 59.9%
  • Perl 40.1%