blob: 0ad0896c89db86cf3089e0980aac6c2514dbf51a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
use strict;
use Test::More;
use xt::CLI;
{
my $app = cli();
$app->run("help");
like $app->stdout, qr/Carton - Perl module/;
$app->run("-h");
like $app->stdout, qr/Carton - Perl module/;
$app->run("help", "install");
like $app->stdout, qr/Install the dependencies/;
$app->run("install", "-h");
like $app->stdout, qr/Install the dependencies/;
$app->run("help", "foobarbaz");
is $app->stdout, '';
like $app->stderr, qr/No documentation found/;
}
done_testing;
|