Use addOption() instead of setDefinition()

This commit is contained in:
Oliver Davies 2019-05-01 19:18:41 +01:00
parent 10831b4239
commit caa3767246
2 changed files with 5 additions and 5 deletions

View file

@ -4,6 +4,8 @@
Released 2019-xx-xx:
- No issue: remove `setDefinition()` and use `addOption()` in `GenerateCommand::configure()`
## 2.3.0
Released 2019-05-01:

View file

@ -22,12 +22,10 @@ class GenerateCommand extends Command
{
$this
->setName(self::NAME)
->setDefinition([
new InputOption('input-file', 'i', InputOption::VALUE_OPTIONAL, 'The name of the PHP file containing your filters.', 'filters.php'),
new InputOption('output-file', 'o', InputOption::VALUE_OPTIONAL, 'The name of the XML file to generate.'),
new InputOption('expanded', 'e', InputOption::VALUE_NONE, 'Whether to generate expanded XML.')
])
->setDescription('Generates XML for Gmail filters.')
->addOption('input-file', 'i', InputOption::VALUE_OPTIONAL, 'The name of the PHP file containing your filters.', 'filters.php')
->addOption('output-file', 'o', InputOption::VALUE_OPTIONAL, 'The name of the XML file to generate.')
->addOption('expanded', 'e', InputOption::VALUE_NONE, 'Whether to generate expanded XML.')
;
}