Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LicensesCommand.php

function LicensesCommand::configure

Overrides Command::configure

File

vendor/composer/composer/src/Composer/Command/LicensesCommand.php, line 34

Class

LicensesCommand
@author BenoƮt Merlet <benoit.merlet@gmail.com>

Namespace

Composer\Command

Code

protected function configure() : void {
    $this->setName('licenses')
        ->setDescription('Shows information about licenses of dependencies')
        ->setDefinition([
        new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the output: text, json or summary', 'text', [
            'text',
            'json',
            'summary',
        ]),
        new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables search in require-dev packages.'),
    ])
        ->setHelp(<<<EOT
The license command displays detailed information about the licenses of
the installed dependencies.

Read more at https://getcomposer.org/doc/03-cli.md#licenses
EOT
);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal