mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-11-12 13:28:44 +00:00
Use addOption() instead of setDefinition()
This commit is contained in:
parent
10831b4239
commit
caa3767246
2 changed files with 5 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue