File: test_command.pm

package info (click to toggle)
libmojolicious-perl 5.54%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,232 kB
  • ctags: 1,223
  • sloc: perl: 9,581; makefile: 10
file content (12 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
package MojoliciousTest::Command::test_command;
use Mojo::Base 'Mojolicious::Command';

use Getopt::Long 'GetOptionsFromArray';

sub run {
  my ($self, @args) = @_;
  GetOptionsFromArray \@args, 'too' => \my $too;
  return $too ? 'works too!' : 'works!';
}

1;