Help   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 4
Bugs 0 Features 3
Metric Value
wmc 1
c 4
b 0
f 3
lcom 0
cbo 0
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 14 1
1
<?php
2
3
namespace Cauditor\Runners;
4
5
/**
6
 * @author Matthias Mullie <[email protected]>
7
 * @copyright Copyright (c) 2016, Matthias Mullie. All rights reserved.
8
 * @license LICENSE MIT
9
 */
10
class Help implements RunnerInterface
11
{
12
    public function execute()
13
    {
14
        echo "Usage: cauditor [options]\n\n",
15
            "Commit Options: (default = analyze latest commit)\n\n",
16
            "  -a|--all              Analyzes all missing commits.\n",
17
            "  -c|--commits=<hash>   Analyze specific (comma-separated list of) commits.\n\n",
18
            "Repo Options: (default = analyze default branch of repo in `pwd`)\n\n",
19
            "  -r|--repo=<uri>       Analyze a specific repo.\n",
20
            "  -b|--branch=<branch>  Analyze a specific branch.\n",
21
            "  -p|--path=<dir>       Analyze a specific directory.\n\n",
22
            "Miscellaneous:\n\n",
23
            "  -t|--target           Cauditor API to push to.\n",
24
            "  -h|--help             Prints this help message.\n";
25
    }
26
}
27