Task #50382
Task #51183: CLI improvements
Impossible to use arguments in CLI that are added by overriding initializeCommandMethodArguments()
| Status: | New | Start date: | 2013-07-24 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assigned To: | - | % Done: | 0% |
|
| Category: | Command | |||
| Target version: | - | |||
| Sprint: | Has patch: | No | ||
| PHP Version: | Complexity: |
Description
Having something like
/**
* @return void
* @throws \TYPO3\Flow\Mvc\Exception\InvalidArgumentTypeException
*/
protected function initializeCommandMethodArguments() {
parent::initializeCommandMethodArguments();
$this->arguments->addNewArgument('porcelain', 'boolean', FALSE, FALSE);
}
should provide the porcelain option to all command methods. But since the CLI request never returns true for hasArgument(), since parseRawCommandLineArguments() uses the ReflectionService and thus will never consider the --porcelain flag if given on the command line.
History
#1 Updated by Bastian Waidelich almost 2 years ago
- Parent task set to #51183