Help language development. Donate to The Perl Foundation

Getopt::Subcommands cpan:LEONT last updated on 2019-12-22

Getopt-Subcommands-0.0.1/

Build Status

NAME

Getopt::Subcommands - A Getopt::Long extension for subcommands

SYNOPSIS

use Getopt::Subcommands;

multi MAIN(*@files, Bool :$dry-run) is command<frobnicate> { ... }

multi MAIN(:$fuzzy) is command<unfrobnicate> { ... }

multi MAIN(*@args) is default { ... }

DESCRIPTION

Getopt::Subcommands is an extension to Getopt::Long that facilitates writing programs with multiple subcommands. It dispatches based on the first argument.

AUTHOR

Leon Timmermans [email protected]

COPYRIGHT AND LICENSE

Copyright 2019 Leon Timmermans

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