Skip to content

Commit

Permalink
display default value even for parameters where there is no list of a…
Browse files Browse the repository at this point in the history
…llowed values
  • Loading branch information
FO-nTTaX committed Jun 16, 2022
1 parent 13c4ae8 commit 6e62986
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
@@ -1,7 +1,7 @@
{
"name": "liquipedia/sqllint",
"description": "A thin wrapper around the SqlParser from the phpMyAdmin project which can be used to lint any amount of sql files from the command line.",
"version": "1.2.0",
"version": "1.2.1",
"type": "library",
"license": "GPL-2.0-or-later",
"keywords": [ "sql", "lint", "junit" ],
Expand Down
6 changes: 4 additions & 2 deletions src/Parameters.php
Expand Up @@ -86,8 +86,10 @@ public static function displayHelp(): void {
. 'Type: ' . $value[ 'type' ] . PHP_EOL;
if ( array_key_exists( 'values', $value ) ) {
$help .= str_repeat( ' ', $parameterSpacer )
. 'Values: One of "' . implode( '", "', $value[ 'values' ] ) . '"' . PHP_EOL
. str_repeat( ' ', $parameterSpacer )
. 'Values: One of "' . implode( '", "', $value[ 'values' ] ) . '"' . PHP_EOL;
}
if ( array_key_exists( 'default', $value ) ) {
$help .= str_repeat( ' ', $parameterSpacer )
. 'Default: "' . $value[ 'default' ] . '"' . PHP_EOL;
}
}
Expand Down

0 comments on commit 6e62986

Please sign in to comment.