protected function configure() { parent::configure(); $this->setName('opithrm:currency-rates:update')->setDescription('Update the given rates into the local database.')->setHelp(<<<EOT The <info>%command.name%</info> command update the rates in the local database: <info>%command.full_name%</info> You can optionally specify the following options: <comment>--start</comment> option to fetch rates from the start date: <info>%command.full_name% --start</info> required. <comment>--end</comment> option to fetch rates to the end date: <info>%command.full_name% --end</info> optional, the default value is the current date. <comment>--currency</comment> option to fetch rates of the given currencies: <info>%command.full_name% --currency</info> optional, the default value is the all currency code. EOT ); }
protected function configure() { parent::configure(); $this->setName('opithrm:currency-rates:insert')->setDescription('Insert the given rates into the local database.')->addOption('current', null, InputOption::VALUE_NONE, 'Insert only the current rates into the local database.')->addOption('missing', null, InputOption::VALUE_NONE, 'Insert the missing rates into the local database.')->setHelp(<<<EOT The <info>%command.name%</info> command fetching the given rates and insert into the database: <info>%command.full_name%</info> You can optionally specify the following options: <comment>--current</comment> option to fetch the today's rates: <info>%command.full_name% --current</info> <comment>--missing</comment> option to fetch the missing rates into the local database from the last saved rate's date': <info>%command.full_name% --missing</info> <comment>--start</comment> option to fetch rates from the start date: <info>%command.full_name% --start</info> <comment>--end</comment> option to fetch rates to the end date: <info>%command.full_name% --end</info> <comment>--currency</comment> option to fetch rates of the given currencies: <info>%command.full_name% --currency</info> EOT ); }