diff --git a/README.md b/README.md index f0afba4..bdd096d 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Scans PHP, Blade-PHP and JavaScript files for translatable strings to find possi [--exclude=] Comma-separated list of files and paths that should be ignored for string extraction. For example, `--exclude=.github,myfile.php` would ignore any strings found within `myfile.php` or the `.github` - folder. Simple glob patterns can be used, i.e. `--exclude=foo-*.php` excludes any PHP file with the `foo-` + folder. Simple glob patterns can be used, i.e. `--exclude="foo-*.php"` excludes any PHP file with the `foo-` prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. The following files and folders are always excluded: node_modules, .git, .svn, .CVS, .hg, vendor, *.min.js, test, tests. @@ -148,14 +148,14 @@ if the source directory is detected as either a plugin or theme. [--include=] Comma-separated list of files and paths that should be used for string extraction. If provided, only these files and folders will be taken into account for string extraction. - For example, `--include="src,my-file.php` will ignore anything besides `my-file.php` and files in the `src` - directory. Simple glob patterns can be used, i.e. `--include=foo-*.php` includes any PHP file with the `foo-` + For example, `--include="src,my-file.php"` will ignore anything besides `my-file.php` and files in the `src` + directory. Simple glob patterns can be used, i.e. `--include="foo-*.php"` includes any PHP file with the `foo-` prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. [--exclude=] Comma-separated list of files and paths that should be skipped for string extraction. For example, `--exclude=.github,myfile.php` would ignore any strings found within `myfile.php` or the `.github` - folder. Simple glob patterns can be used, i.e. `--exclude=foo-*.php` excludes any PHP file with the `foo-` + folder. Simple glob patterns can be used, i.e. `--exclude="foo-*.php"` excludes any PHP file with the `foo-` prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. The following files and folders are always excluded: node_modules, .git, .svn, .CVS, .hg, vendor, *.min.js. diff --git a/src/AuditCommand.php b/src/AuditCommand.php index 43910b6..dcdf1c3 100644 --- a/src/AuditCommand.php +++ b/src/AuditCommand.php @@ -50,7 +50,7 @@ class AuditCommand extends MakePotCommand { * [--exclude=] * : Comma-separated list of files and paths that should be ignored for string extraction. * For example, `--exclude=.github,myfile.php` would ignore any strings found within `myfile.php` or the `.github` - * folder. Simple glob patterns can be used, i.e. `--exclude=foo-*.php` excludes any PHP file with the `foo-` + * folder. Simple glob patterns can be used, i.e. `--exclude="foo-*.php"` excludes any PHP file with the `foo-` * prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. The * following files and folders are always excluded: node_modules, .git, .svn, .CVS, .hg, vendor, *.min.js, test, tests. * diff --git a/src/MakePotCommand.php b/src/MakePotCommand.php index 74d9066..87c3817 100644 --- a/src/MakePotCommand.php +++ b/src/MakePotCommand.php @@ -214,14 +214,14 @@ class MakePotCommand extends WP_CLI_Command { * [--include=] * : Comma-separated list of files and paths that should be used for string extraction. * If provided, only these files and folders will be taken into account for string extraction. - * For example, `--include="src,my-file.php` will ignore anything besides `my-file.php` and files in the `src` - * directory. Simple glob patterns can be used, i.e. `--include=foo-*.php` includes any PHP file with the `foo-` + * For example, `--include="src,my-file.php"` will ignore anything besides `my-file.php` and files in the `src` + * directory. Simple glob patterns can be used, i.e. `--include="foo-*.php"` includes any PHP file with the `foo-` * prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. * * [--exclude=] * : Comma-separated list of files and paths that should be skipped for string extraction. * For example, `--exclude=.github,myfile.php` would ignore any strings found within `myfile.php` or the `.github` - * folder. Simple glob patterns can be used, i.e. `--exclude=foo-*.php` excludes any PHP file with the `foo-` + * folder. Simple glob patterns can be used, i.e. `--exclude="foo-*.php"` excludes any PHP file with the `foo-` * prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. The * following files and folders are always excluded: node_modules, .git, .svn, .CVS, .hg, vendor, *.min.js. *