Skip to content

Commit

Permalink
Merge pull request #761 from dotnet/dev/jorobich/update-docs
Browse files Browse the repository at this point in the history
Update --include and --exclude documentation
  • Loading branch information
JoeRobich committed Aug 15, 2020
2 parents 16cdc7d + b8d3bcf commit 2f08a90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/README.md
Expand Up @@ -68,7 +68,7 @@ Running 3rd party analysis requires the use of a MSBuild solution or project fil

### Filter files to format

You can further narrow the list of files to be formatted by limiting to set of included files that are not excluded. File globbing is supported.
You can further narrow the list of files to be formatted by specifying a list of paths to include or exclude. When specifying folder paths the path must end with a directory separator. File globbing is supported.

- `--include` - A list of relative file or folder paths to include in formatting.
- `--exclude` - A list of relative file or folder paths to exclude from formatting.
Expand All @@ -90,4 +90,4 @@ dotnet format -f --include ./src/ ./tests/ --exclude ./src/submodule-a/ --check

### Validate formatting

- `--check` - Formats files without saving changes to disk. Terminates with a non-zero exit code (`2`) if any files were formatted.
- `--check` - Formats files without saving changes to disk. Terminates with a non-zero exit code (`2`) if any files were formatted.

0 comments on commit 2f08a90

Please sign in to comment.