mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-01-22 12:07:32 +00:00
Use command default name
This commit is contained in:
parent
4083ef802b
commit
b9dfa9bd7e
|
@ -14,5 +14,5 @@ $container = new Container();
|
|||
|
||||
/** @var Application $application */
|
||||
$application = $container->get(Application::class);
|
||||
$application->setDefaultCommand(GenerateCommand::NAME);
|
||||
$application->setDefaultCommand(GenerateCommand::getDefaultName());
|
||||
$application->run();
|
||||
|
|
|
@ -13,7 +13,7 @@ use Symfony\Component\Filesystem\Filesystem;
|
|||
|
||||
class GenerateCommand extends Command
|
||||
{
|
||||
const NAME = 'generate';
|
||||
protected static $defaultName = 'generate';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
@ -21,7 +21,6 @@ class GenerateCommand extends Command
|
|||
public function configure()
|
||||
{
|
||||
$this
|
||||
->setName(self::NAME)
|
||||
->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.')
|
||||
|
|
Loading…
Reference in a new issue