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
Namespace
PHP_CodeSniffer\UtilCode
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;
}