mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-01-22 12:07:32 +00:00
Use addOption() instead of setDefinition()
This commit is contained in:
parent
10831b4239
commit
caa3767246
|
@ -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:
|
||||
|
|
|
@ -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.')
|
||||
;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue