We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bafc1c commit c7566a7Copy full SHA for c7566a7
src/Gendiff.php
@@ -4,6 +4,26 @@
4
5
function runGendiff(): void
6
{
7
- $consoleApp = new ConsoleApp();
+ $docopt = <<<'DOCOPT'
8
+ gendiff -h
9
+
10
+ Generate diff
11
12
+ Usage:
13
+ gendiff (-h|--help)
14
+ gendiff (-v|--version)
15
+ gendiff [Options]... FILE1 FILE2
16
17
+ Options:
18
+ -h --help Show this screen
19
+ -v --version Show version
20
+ --format <fmt> Report format [default: stylish]
21
22
+ DOCOPT;
23
24
+ $commandFactory = new CommandFactory($docopt);
25
+ $fileReader = new FileReader();
26
27
+ $consoleApp = new ConsoleApp($commandFactory, $fileReader);
28
$consoleApp->run();
29
}
0 commit comments