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

Breadcrumb

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

function Help::printUsage

Print basic usage information to the screen.

Return value

void

1 call to Help::printUsage()
Help::display in vendor/squizlabs/php_codesniffer/src/Util/Help.php
Display the help info.

File

vendor/squizlabs/php_codesniffer/src/Util/Help.php, line 269

Class

Help

Namespace

PHP_CodeSniffer\Util

Code

private function printUsage() {
    $command = 'phpcs';
    if (defined('PHP_CODESNIFFER_CBF') === true && PHP_CODESNIFFER_CBF === true) {
        $command = 'phpcbf';
        // @codeCoverageIgnore
    }
    $this->printCategoryHeader('Usage');
    echo self::INDENT . $command . ' [options] <file|directory>' . PHP_EOL;
}
RSS feed
Powered by Drupal