On Fri, May 16, 2014 at 10:05:53AM -0700, sri wrote:
Maybe look at how we do it.
http://mojolicio.us/perldoc/Mojolicious/Command#extract_usage
Progress.
...
usage([ $self, "help" ]) if ( $query_params{'help'} );
}
sub usage
{
my ( $self, $msg ) = @_;
say "Running usage in file $0";
say $self->extract_usage;
}
This does extract the pod in the pm, but returns both SYNOPSIS and
OPTIONS. Is there a way to return only SYNOPSIS?
--
Neil Watson
Linux/UNIX Consultant
http://watson-wilson.ca
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.