Skip to content

Commit 8ab3110

Browse files
committed
Merge addOptions in sfI18nExtractTask
1 parent 7294629 commit 8ab3110

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/task/i18n/sfI18nExtractTask.class.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/*
1010
* This file is part of the symfony package.
1111
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
12-
*
12+
*
1313
* For the full copyright and license information, please view the LICENSE
1414
* file that was distributed with this source code.
1515
*/
@@ -34,11 +34,8 @@ protected function configure()
3434
new sfCommandArgument('culture', sfCommandArgument::REQUIRED, 'The target culture'),
3535
));
3636

37-
$this->addOptions( array(
38-
new sfCommandOption('env', null, sfCommandOption::PARAMETER_OPTIONAL, 'The environment', 'dev'),
39-
));
40-
4137
$this->addOptions(array(
38+
new sfCommandOption('env', null, sfCommandOption::PARAMETER_OPTIONAL, 'The environment', 'dev'),
4239
new sfCommandOption('display-new', null, sfCommandOption::PARAMETER_NONE, 'Output all new found strings'),
4340
new sfCommandOption('display-old', null, sfCommandOption::PARAMETER_NONE, 'Output all old strings'),
4441
new sfCommandOption('auto-save', null, sfCommandOption::PARAMETER_NONE, 'Save the new strings'),
@@ -71,7 +68,7 @@ protected function configure()
7168
[./symfony i18n:extract --auto-save frontend fr|INFO]
7269
7370
If you want to display strings that are present in the i18n messages
74-
catalogue but are not found in the application, use the
71+
catalogue but are not found in the application, use the
7572
[--display-old|COMMENT] option:
7673
7774
[./symfony i18n:extract --display-old frontend fr|INFO]

0 commit comments

Comments
 (0)