N98\Magento\Command\System\Url\ListCommand::configure PHP Method

configure() protected method

protected configure ( )
    protected function configure()
    {
        $this->setName('sys:url:list')->addOption('add-categories', null, InputOption::VALUE_NONE, 'Adds categories')->addOption('add-products', null, InputOption::VALUE_NONE, 'Adds products')->addOption('add-cmspages', null, InputOption::VALUE_NONE, 'Adds cms pages')->addOption('add-all', null, InputOption::VALUE_NONE, 'Adds categories, products and cms pages')->addArgument('stores', InputArgument::OPTIONAL, 'Stores (comma-separated list of store ids)')->addArgument('linetemplate', InputArgument::OPTIONAL, 'Line template', '{url}')->setDescription('Get all urls.');
        $help = <<<HELP
Examples:

- Create a list of product urls only:

   \$ n98-magerun.phar sys:url:list --add-products 4

- Create a list of all products, categories and cms pages of store 4 
  and 5 separating host and path (e.g. to feed a jmeter csv sampler):

   \$ n98-magerun.phar sys:url:list --add-all 4,5 '{host},{path}' > urls.csv

- The "linetemplate" can contain all parts "parse_url" return wrapped 
  in '{}'. '{url}' always maps the complete url and is set by default
HELP;
        $this->setHelp($help);
    }