File tree 4 files changed +8
-7
lines changed
packages/guides-cli/src/Command 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 35
35
dependency-versions : " highest"
36
36
37
37
- name : " Run guides-cli"
38
- run : " vendor/bin/guides -vvv --no-progress docs /tmp/test --fail-on-log"
38
+ run : ' vendor/bin/guides -vvv --no-progress docs --output= ' /tmp/test' --fail-on-log"
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ test-integration: ## Runs integration tests with phpunit/phpunit
44
44
45
45
.PHONY : test-docs
46
46
test-docs : # # Generate projects docs without warnings
47
- $(PHP_BIN ) vendor/bin/guides -vvv --no-progress docs /tmp/test --fail-on-log
47
+ $(PHP_BIN ) vendor/bin/guides -vvv --no-progress docs --output= " /tmp/test" --fail-on-log
48
48
49
49
.PHONY : cleanup
50
50
cleanup : cleanup-tests cleanup-build cleanup-cache
Original file line number Diff line number Diff line change @@ -59,9 +59,10 @@ public function __construct(
59
59
InputArgument::OPTIONAL ,
60
60
'Directory to read for files ' ,
61
61
);
62
- $ this ->addArgument (
62
+ $ this ->addOption (
63
63
'output ' ,
64
- InputArgument::OPTIONAL ,
64
+ null ,
65
+ InputOption::VALUE_REQUIRED ,
65
66
'Directory to read for files ' ,
66
67
);
67
68
@@ -125,8 +126,8 @@ private function getSettingsOverridenWithInput(InputInterface $input): ProjectSe
125
126
$ settings ->setInput ((string ) $ input ->getArgument ('input ' ));
126
127
}
127
128
128
- if ($ input ->getArgument ('output ' )) {
129
- $ settings ->setOutput ((string ) $ input ->getArgument ('output ' ));
129
+ if ($ input ->getOption ('output ' )) {
130
+ $ settings ->setOutput ((string ) $ input ->getOption ('output ' ));
130
131
}
131
132
132
133
if ($ input ->getOption ('input-file ' )) {
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public function testHtmlIntegration(
65
65
$ input = new ArrayInput (
66
66
[
67
67
'input ' => $ inputPath ,
68
- 'output ' => $ outputPath ,
68
+ '-- output ' => $ outputPath ,
69
69
'--log-path ' => $ outputPath . '/logs ' ,
70
70
],
71
71
$ command ->getDefinition (),
You can’t perform that action at this time.
0 commit comments