We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 509a415 + c2ee34a commit 0fb747eCopy full SHA for 0fb747e
src/DumpCommand.php
@@ -20,7 +20,7 @@ protected function configure()
20
new InputOption('script-options', null, InputOption::VALUE_REQUIRED, "Options to be passed to the script."),
21
new InputOption('aliases', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, "Extra aliases to be used."),
22
new InputOption('disable-default-tools', null, InputOption::VALUE_NONE),
23
- new InputOption('shell', null, InputOption::VALUE_REQUIRED, 'Shell type ("bash", "fish" or "zsh")', basename($_SERVER['SHELL'])),
+ new InputOption('shell', null, InputOption::VALUE_REQUIRED, 'Shell type ("bash", "fish" or "zsh")', isset($_SERVER['SHELL']) ? basename($_SERVER['SHELL']) : null),
24
))
25
->setDescription('Dumps shell autocompletion for any executable based on a Symfony Console Application.')
26
;
0 commit comments