App::Sp...rameter(3)
π NAME π
okay so bestie, this page is App::Spec::Parameter β and it's giving App::Spec objects representing command line parameters. The manual name is User Contributed Perl Documentation, and the page header title is App::Sp...rameter(3); folding that in right here so you're not confused later. π
πΈ SYNOPSIS πΈ
Short and iconic: this class inherits from App::Spec::Argument. That's the whole synopsis, no cap. π«Ά
β¨ METHODS β¨
These are the methods on deck, bestie.
π οΈ build
Use it like this:
my $param = App::Spec::Parameter->build(
name => 'verbose',
summary => 'lala',
);
The example passes name => 'verbose' and summary => 'lala', and that's literally it. Slay. π
π to_usage_header
Call it on your param like this:
my $param_usage_header = $param->to_usage_header;
# results
# if multiple and required
# <$name>+
# if multiple
# [<$name>+]
# if required
# <$name>
# else
# [<$name>}
The comments are the cheat sheet for what the result looks like depending on whether it's multiple and required, just multiple, required, or neither. Keep that last # [<$name>} exactly as shown, bestie β character for character, no editing. π
that's the whole page, babe. π This is from perl v5.42.0, dated 2025-03-26, and the footer title is App::Sp...rameter(3). periodt. β¨π¦
π¦ where this page comes from
- opensuse-leap 16.0: perl-App-Spec 0.15.0-bp160.1.1 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms