Help language development. Donate to The Perl Foundation
Getopt::Subcommands - A Getopt::Long extension for subcommands
use Getopt::Subcommands;
multi MAIN(*@files, Bool :$dry-run) is command<frobnicate> { ... }
multi MAIN(:$fuzzy) is command<unfrobnicate> { ... }
multi MAIN(*@args) is default { ... }
Getopt::Subcommands is an extension to Getopt::Long that facilitates writing programs with multiple subcommands. It dispatches based on the first argument.
Leon Timmermans [email protected]
Copyright 2019 Leon Timmermans
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.