Index: branches/wmf/1.18wmf1/maintenance/mergeMessageFileList.php |
— | — | @@ -32,7 +32,7 @@ |
33 | 33 | |
34 | 34 | function __construct() { |
35 | 35 | parent::__construct(); |
36 | | - $this->addOption( 'list-file', 'A file containing a list of extension setup files, one per line.', false, true ); |
| 36 | + $this->addOption( 'list-file', 'A file containing a list of extension setup files, one per line.', true, true ); |
37 | 37 | $this->addOption( 'output', 'Send output to this file (omit for stdout)', false, true ); |
38 | 38 | $this->mDescription = 'Merge $wgExtensionMessagesFiles from various extensions to produce a ' . |
39 | 39 | 'single array containing all message files.'; |
— | — | @@ -40,10 +40,6 @@ |
41 | 41 | |
42 | 42 | public function execute() { |
43 | 43 | global $mmfl; |
44 | | - if ( !$this->hasOption( 'list-file' ) ) { |
45 | | - $this->error( 'The --list-file option must be specified.' ); |
46 | | - return; |
47 | | - } |
48 | 44 | |
49 | 45 | $lines = file( $this->getOption( 'list-file' ) ); |
50 | 46 | if ( $lines === false ) { |