On 16/05/2014, at 11:12 AM, Neil Watson <n...@watson-wilson.ca> wrote:
> Greetings, > > When using mojo::command how do you parse arguments? I tried > getopt::long but nothing came through. > > package DeltaR::Command::query; > use Mojo::Base 'Mojolicious::Command'; > use Getopt::Long; > use Data::Dumper; > > sub run > { > my $self = shift; > my %query_params; use Getopt::Long qw/GetOptionsFromArray/; sub run { my ($self, @args) = @_; my $verbose = 0; GetOptionsFromArray(\@args, "verbose" => \$verbose ); ... } - Justin -- 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 mojolicious+unsubscr...@googlegroups.com. To post to this group, send email to mojolicious@googlegroups.com. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.