{"id":7271,"date":"2022-12-20T19:37:33","date_gmt":"2022-12-20T22:37:33","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/moosexgetoptbasic-man3\/"},"modified":"2022-12-20T19:37:33","modified_gmt":"2022-12-20T22:37:33","slug":"moosexgetoptbasic-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/moosexgetoptbasic-man3\/","title":{"rendered":"MooseX::Getopt::Basic (man3)"},"content":{"rendered":"<h1 align=\"center\">MooseX::Getopt::Basic<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#VERSION\">VERSION<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#METHODS\">METHODS<\/a><br \/> <a href=\"#SUPPORT\">SUPPORT<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#COPYRIGHT AND LICENSE\">COPYRIGHT AND LICENSE<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">MooseX::Getopt::Basic \u2212 MooseX::Getopt::Basic \u2212 role to implement the Getopt::Long functionality<\/p>\n<h2>VERSION <a name=\"VERSION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">version 0.74<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">## In your class <br \/> package My::App; <br \/> use Moose; <br \/> with &#8216;MooseX::Getopt::Basic&#8217;; <br \/> has &#8216;out&#8217; => (is => &#8216;rw&#8217;, isa => &#8216;Str&#8217;, required => 1); <br \/> has &#8216;in&#8217; => (is => &#8216;rw&#8217;, isa => &#8216;Str&#8217;, required => 1); <br \/> # &#8230; rest of the class here <br \/> ## in your script <br \/> #!\/usr\/bin\/perl <br \/> use My::App; <br \/> my $app = My::App\u2212>new_with_options(); <br \/> # &#8230; rest of the script here <br \/> ## on the command line <br \/> % perl my_app_script.pl \u2212\u2212in file.input \u2212\u2212out file.dump<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This is like MooseX::Getopt and can be used instead except that it doesn\u2019t make use of Getopt::Long::Descriptive (or &#8221; <small>GLD&#8221;<\/small> for short).<\/p>\n<h2>METHODS <a name=\"METHODS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>new_with_options<\/b> <br \/> See &#8220;new_with_options&#8221; in MooseX::Getopt.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>process_argv<\/b> <br \/> See &#8220;process_argv&#8221; in MooseX::Getopt.<\/p>\n<h2>SUPPORT <a name=\"SUPPORT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Bugs may be submitted through the <small>RT<\/small> bug tracker <https:\/\/rt.cpan.org\/Public\/Dist\/Display.html?Name=MooseX-Getopt> (or bug\u2212MooseX\u2212Getopt@rt.cpan.org <mailto:bug-MooseX-Getopt@rt.cpan.org>).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">There is also a mailing list available for users of this distribution, at <http:\/\/lists.perl.org\/list\/moose.html>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">There is also an irc channel available for users of this distribution, at &#8220;#moose&#8221; on &#8220;irc.perl.org&#8221; <irc:\/\/irc.perl.org\/#moose>.<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Stevan Little <stevan@iinteractive.com><\/p>\n<h2>COPYRIGHT AND LICENSE <a name=\"COPYRIGHT AND LICENSE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This software is copyright (c) 2007 by Infinity Interactive, Inc.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This is free software; you can redistribute it and\/or modify it under the same terms as the Perl 5 programming language system itself.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  MooseX::Getopt::Basic \u2212 MooseX::Getopt::Basic \u2212 role to implement the Getopt::Long functionality <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3007,3595],"class_list":["post-7271","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-man3","tag-moosexgetoptbasic"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=7271"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7271\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}