8000 Treating option as array (via @nicolas-grekas) · symfony/symfony@7af952f · GitHub
[go: up one dir, main page]

Skip to content

Commit 7af952f

Browse files
committed
Treating option as array (via @nicolas-grekas)
1 parent 49029ae commit 7af952f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,13 @@ protected function configure()
5959
new InputOption('show-controllers', null, InputOption::VALUE_NONE, 'Show assigned controllers in overview'),
6060
new InputOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (txt, xml, json, or md)', 'txt'),
6161
new InputOption('raw', null, InputOption::VALUE_NONE, 'To output raw route(s)'),
62-
new InputOption('sort', null, InputOption::VALUE_REQUIRED, 'The sorting field (priority, name, or path)', 'priority'),
62+
new InputOption(
63+
'sort',
64+
null,
65+
InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY,
66+
'The sorting field',
67+
['priority', 'name', 'path']
68+
),
6369
])
6470
->setDescription('Displays current routes for an application')
6571
->setHelp(<<<'EOF'

0 commit comments

Comments
 (0)
0