@@ -133,7 +133,7 @@ private function loadOptions(): CommandLine
133133 '-c ' => [CommandLine::Realpath => true ],
134134 '--watch ' => [CommandLine::Repeatable => true , CommandLine::Realpath => true ],
135135 '--setup ' => [CommandLine::Realpath => true ],
136- '--temp ' => [CommandLine::Realpath => true ],
136+ '--temp ' => [],
137137 'paths ' => [CommandLine::Repeatable => true , CommandLine::Value => getcwd ()],
138138 '--debug ' => [],
139139 '--cider ' => [],
@@ -179,8 +179,10 @@ private function loadOptions(): CommandLine
179179 } elseif (($ real = realpath ($ temp )) === false ) {
180180 echo "Note: System temporary directory ' $ temp' does not exist. \n" ;
181181 } else {
182- $ this ->options ['--temp ' ] = rtrim ($ real, DIRECTORY_SEPARATOR );
182+ $ this ->options ['--temp ' ] = Helpers:: prepareTempDir ($ real );
183183 }
184+ } else {
185+ $ this ->options ['--temp ' ] = Helpers::prepareTempDir ($ this ->options ['--temp ' ]);
184186 }
185187
186188 return $ cmd ;
@@ -218,10 +220,7 @@ private function createRunner(): Runner
218220 $ runner ->paths = $ this ->options ['paths ' ];
219221 $ runner ->threadCount = max (1 , (int ) $ this ->options ['-j ' ]);
220222 $ runner ->stopOnFail = $ this ->options ['--stop-on-fail ' ];
221-
222- if ($ this ->options ['--temp ' ] !== null ) {
223- $ runner ->setTempDirectory ($ this ->options ['--temp ' ]);
224- }
223+ $ runner ->setTempDirectory ($ this ->options ['--temp ' ]);
225224
226225 if ($ this ->stdoutFormat === null ) {
227226 $ runner ->outputHandlers [] = new Output \ConsolePrinter (
0 commit comments