Test Setup Failed
Push — master ( b5b0f1...43ee18 )
by Josh
03:26
created

Application::getHelp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: joshgulledge
5
 * Date: 2/15/18
6
 * Time: 2:43 PM
7
 */
8
9
namespace LCI\Blend;
10
11
use LCI\MODX\Console\Application as ConsoleApplication;
12
use Symfony\Component\Console\Input\InputArgument;
13
use Symfony\Component\Console\Input\InputDefinition;
14
use Symfony\Component\Console\Input\InputOption;
15
16
class Application extends ConsoleApplication
17
{
18
    protected static $logo = 'art/blend.txt';
19
20
    protected static $name = 'Blend Console';
21
22
    protected static $version = '1.0.0 beta5';
23
24
    /**
25
     * Gets the default input definition.
26
     *
27
     * @return InputDefinition An InputDefinition instance
28
     */
29
    protected function getDefaultInputDefinition()
30
    {
31
        return new InputDefinition(array(
32
            new InputArgument('command', InputArgument::REQUIRED, 'The command to execute'),
33
34
            new InputOption('--help',           '-h', InputOption::VALUE_NONE, 'Display this help message.'),
35
            //new InputOption('--verbose',        '-v|vv|vvv', InputOption::VALUE_NONE, 'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.'),
36
            new InputOption('--version',        '-V', InputOption::VALUE_NONE, 'Display the Blend version.'),
37
        ));
38
    }
39
}