{"id":6778,"date":"2022-12-20T19:33:38","date_gmt":"2022-12-20T22:33:38","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/moosexgetoptdashes-man3\/"},"modified":"2022-12-20T19:33:38","modified_gmt":"2022-12-20T22:33:38","slug":"moosexgetoptdashes-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/moosexgetoptdashes-man3\/","title":{"rendered":"MooseX::Getopt::Dashes (man3)"},"content":{"rendered":"<h1 align=\"center\">MooseX::Getopt::Dashes<\/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=\"#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::Dashes \u2212 convert underscores in attribute names to dashes<\/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\">package My::App; <br \/> use Moose; <br \/> with &#8216;MooseX::Getopt::Dashes&#8217;; <br \/> # Will be called as \u2212\u2212some\u2212thingy, not \u2212\u2212some_thingy <br \/> has &#8216;some_thingy&#8217; => ( <br \/> is => &#8216;ro&#8217;, <br \/> isa => &#8216;Str&#8217;, <br \/> default => &#8216;foo&#8217; <br \/> ); <br \/> # Will be called as \u2212\u2212another_thingy, not \u2212\u2212another\u2212thingy <br \/> has &#8216;another_thingy&#8217; => ( <br \/> traits => [ &#8216;Getopt&#8217; ], <br \/> cmd_flag => &#8216;another_thingy&#8217; <br \/> is => &#8216;ro&#8217;, <br \/> isa => &#8216;Str&#8217;, <br \/> default => &#8216;foo&#8217; <br \/> ); <br \/> # use as MooseX::Getopt<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This is a version of MooseX::Getopt which converts underscores in attribute names to dashes when generating command line flags.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can selectively disable this on a per-attribute basis by supplying a cmd_flag argument with the command flag you\u2019d like for a given attribute. No underscore to dash replacement will be done on the &#8220;cmd_flag&#8221;.<\/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::Dashes \u2212 convert underscores in attribute names to dashes <\/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,3150],"class_list":["post-6778","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-man3","tag-moosexgetoptdashes"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6778","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=6778"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6778\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}