We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e3d6163 + 2e9be6c commit c4e4e8bCopy full SHA for c4e4e8b
pretty
@@ -32,6 +32,17 @@ $commands = [
32
];
33
34
$task = isset($argv[1]) ? $argv[1] : 'default';
35
+
36
+if ($task === 'help') {
37
+ help();
38
+ exit(0);
39
+}
40
+if (!isset($commands[$task])) {
41
+ echo "Unrecognized command '$task'\n";
42
43
+ exit(1);
44
45
46
$commands = $commands[$task];
47
48
$command = '';
@@ -89,3 +100,14 @@ INSTRUCTIONS;
89
100
exit(1);
90
101
}
91
102
103
104
+function help()
105
+{
106
+ echo <<<'HELP'
107
+Available commands:
108
+- pretty: runs an analysis (will not fix the code)
109
+- pretty fix: fix as many errors as possible in the code
110
+- pretty ci: runs an analysis in a continuous integration environment
111
+- pretty help: displays this help
112
+HELP;
113
0 commit comments