X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Getopt.git;a=blobdiff_plain;f=lib%2FMooseX%2FGetopt.pm;h=364e507436ec031d55fd51646030663c2e1d219c;hp=6ad6e1cc7dec7824748bdd1755637223724f0180;hb=83446b781bbe89f41f87f2c03f07065bda919f43;hpb=8aa34615d0ebc43eb9bff930bff754e9e1b2093d diff --git a/lib/MooseX/Getopt.pm b/lib/MooseX/Getopt.pm index 6ad6e1c..364e507 100644 --- a/lib/MooseX/Getopt.pm +++ b/lib/MooseX/Getopt.pm @@ -236,6 +236,14 @@ L is used). This accessor contains the boolean state of the --help, --usage and --? options (true if any of these options were passed on the command line). +=method B + +This method is called internally when the C state is true. +It prints the text from the C object (see above) to stdout and then the +program terminates normally. You can apply a method modification (see +L) if different behaviour is desired, for +example to include additional text. + =method B This returns the role meta object.