Support trace option for config add/edit command.

This commit is contained in:
Abdulmhsen B. A. A
2023-05-09 20:22:59 +03:00
parent 5c5b8567df
commit 109d18cc56
5 changed files with 21 additions and 9 deletions

View File

@@ -54,8 +54,11 @@ final class AddCommand extends Command
'--add' => true,
];
if ($input->getOption('config')) {
$opts['--config'] = $input->getOption('config');
foreach ($input->getOptions() as $option => $val) {
if (null === $val) {
continue;
}
$opts['--' . $option] = $val;
}
$opts['backend'] = strtolower($input->getArgument('backend'));