From 2d451be104d6fa5f77c8a1d40f3f8bdfaedfe2ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Goetz?= Date: Fri, 30 Sep 2016 23:10:17 +0200 Subject: [PATCH] Handle default command arguments, fixes #409 --- libs/Console/Generate.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/libs/Console/Generate.php b/libs/Console/Generate.php index d3bc8b6..5e3bf0e 100755 --- a/libs/Console/Generate.php +++ b/libs/Console/Generate.php @@ -1,5 +1,7 @@ getName(); + array_unshift($argv, 'binary_name'); + + $input = new ArgvInput($argv, $this->getDefinition()); + } + $daux = $this->prepareDaux($input); $width = $this->getApplication()->getTerminalDimensions()[0];