Skip to content

Commit

Permalink
[console] Add 'suggestedValues' Parameter
Browse files Browse the repository at this point in the history
fixes #232
  • Loading branch information
jjjb03 authored Jun 20, 2024
1 parent 5ace8e1 commit 0f128f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Handler/ConsoleHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private static function analyseOption(array $args, StatementsSource $statements_
*/
private static function normalizeOptionParams(array $args): array
{
return self::normalizeParams(['name', 'shortcut', 'mode', 'description', 'default'], $args);
return self::normalizeParams(['name', 'shortcut', 'mode', 'description', 'default', 'suggestedValues'], $args);
}

/**
Expand All @@ -247,7 +247,7 @@ private static function normalizeOptionParams(array $args): array
*/
private static function normalizeArgumentParams(array $args): array
{
return self::normalizeParams(['name', 'mode', 'description', 'default'], $args);
return self::normalizeParams(['name', 'mode', 'description', 'default', 'suggestedValues'], $args);
}

private static function normalizeParams(array $params, array $args): array
Expand Down

0 comments on commit 0f128f9

Please sign in to comment.