You are here

protected function ExportCommand::configure in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Command/ExportCommand.php \Drupal\webprofiler\Command\ExportCommand::configure()
  2. 8.2 webprofiler/src/Command/ExportCommand.php \Drupal\webprofiler\Command\ExportCommand::configure()
  3. 4.x webprofiler/src/Command/ExportCommand.php \Drupal\webprofiler\Command\ExportCommand::configure()

File

webprofiler/src/Command/ExportCommand.php, line 34

Class

ExportCommand
Class ExportCommand

Namespace

Drupal\webprofiler\Command

Code

protected function configure() {
  $this
    ->setName('webprofiler:export')
    ->setDescription($this
    ->trans('commands.webprofiler.export.description'))
    ->addArgument('id', InputArgument::OPTIONAL, $this
    ->trans('commands.webprofiler.export.arguments.id'))
    ->addOption('directory', NULL, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.webprofiler.export.options.directory'), '/tmp');
}