Skip to content

Commit

Permalink
Usage and help info
Browse files Browse the repository at this point in the history
  • Loading branch information
André L F S Bacci committed Dec 15, 2023
1 parent 0861659 commit ed0a911
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/translation/configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@

require_once __DIR__ . '/lib/all.php';

if ( count( $argv ) < 2 )
if ( count( $argv ) < 2 || in_array( '--help' , $argv ) || in_array( '-h' , $argv ) )
{
fwrite( STDERR , " Missing paramater. Usage:\n" );
fwrite( STDERR , " {$argv[0]} [lang_dir]:\n" );
fwrite( STDERR , "Usage: {$argv[0]} [lang_dir]\n\n" );
fwrite( STDERR , "See https://github.com/php/doc-base/tree/master/scripts/translation#readme for more info.\n" );
return;
}

Expand Down

0 comments on commit ed0a911

Please sign in to comment.