Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding all options from help output to the readme file. #288

Merged
merged 1 commit into from
May 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 20 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,29 @@ Refer to Composer's documentation on how to ensure global binaries are in your P

## Usage

Usage:

```
php vendor/bin/drupal-check [OPTIONS] [DIRS]
```

```
php vendor/bin/drupal-check [options] [--] <path>...
```
Arguments:

* `OPTIONS` - See "Options" for allowed values. Specify multiples in sequence, e.g. `-ad`.
* `DIRS` - One or more directories within the root of a Drupal project.
* `path` - The Drupal code path(s) to inspect

Options:

* `-a` Check analysis
* `-d` Check deprecations (default)
* `-e` Exclude directories. Wildcards work. Separate multiple excluded directories with commas, no spaces. e.g.: \*/tests/codeception/acceptance/\*.php
* `--drupal-root` Path to Drupal root. Fallback option if drupal-check could not identify Drupal root from the provided path(s).
* `--drupal-root[=DRUPAL-ROOT]` - Path to Drupal root.
* `--format[=FORMAT]` - Formatter to use: raw, table, checkstyle, json, or junit [default: "table"]
* `-d, --deprecations` - Check for deprecations
* `-a, --analysis` - Check code analysis
* `-s, --style` - Check code style
* `--php8` - Set PHPStan phpVersion for 8.1 (Drupal 10 requirement)
* `--memory-limit[=MEMORY-LIMIT]` - Memory limit for analysis
* `-e, --exclude-dir[=EXCLUDE-DIR]` - Directories to exclude. Separate multiple directories with a comma, no spaces.
* `--no-progress` - Do not show progress bar, only results
* `-h, --help` - Display this help message
* `-q, --quiet` - Do not output any message
* `-V, --version` - Display this application version
* `--ansi` - Force ANSI output
* `--no-ansi` - Disable ANSI output
* `-n, --no-interaction` - Do not ask any interactive question
* `-v|vv|vvv, --verbose` - Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Examples:

Expand Down