Rand Stats

Getopt::Type

zef:raku-community-modules

Actions Status Actions Status Actions Status

NAME

Getopt::Type - MAIN? Getopt semantics? Why not both?

SYNOPSIS

use Getopt::Type;

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

DESCRIPTION

MAIN? Getopt semantics? Why not both?

AUTHOR

Tadeusz Sośnierz

COPYRIGHT AND LICENSE

Copyright 2016 - 2017 Tadeusz Sośnierz

Copyright 2024 Raku Community

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.