Add --changes-only to manpage and completions

This commit is contained in:
Félix Saparelli 2021-04-11 00:01:02 +12:00
parent ecd7d1c7e3
commit 1da3a8d26c
2 changed files with 6 additions and 2 deletions

View File

@ -19,6 +19,7 @@ args=(
'(-r --restart)'{-r,--restart}'[Restart the process if it''s still running]'
'(-V --version)'{-V,--version}'[Prints version information]'
'(-v --verbose)'{-v,--verbose}'[Print debugging messages to stderr]'
'--changes-only[Print changed paths to stderr for pattern debugging]'
'(-d --debounce)'{-d+,--debounce=}'[Set the timeout between detected change and command execution, defaults to 500ms]:milliseconds'
'(-e --exts)'{-e+,--exts=}'[Comma-separated list of file extensions to watch (js,css,html)]:extensions'
'(-f --filter)'{-f+,--filter=}'[Ignore all modifications except those matching the pattern]:pattern'

View File

@ -3,7 +3,7 @@ watchexec(1) -- execute commands when watched files change
## SYNOPSIS
watchexec [`--exts` | `-e` <extensions>]... [`--filter` | `-f` <pattern>]... [`--ignore` | `-i` <pattern>]... [`--watch` | `-w` <path>]... [`--restart` | `-r`] [`--clear` | `-c`] [`--postpone` | `-p`] [`--force-poll` <interval>] [`--debounce` | `-d` <interval>] [`--no-vcs-ignore`] [`--no-default-ignore`] [`--verbose` | `-v`] [`--version` | `-V`] [--] <command> [<argument>...]
watchexec [`--exts` | `-e` <extensions>]... [`--filter` | `-f` <pattern>]... [`--ignore` | `-i` <pattern>]... [`--watch` | `-w` <path>]... [`--restart` | `-r`] [`--clear` | `-c`] [`--postpone` | `-p`] [`--force-poll` <interval>] [`--debounce` | `-d` <interval>] [`--no-vcs-ignore`] [`--no-default-ignore`] [`--verbose` | `-v`] [`--changes-only`] [`--version` | `-V`] [--] <command> [<argument>...]
## DESCRIPTION
@ -62,7 +62,10 @@ Skip loading of version control system (VCS) ignore files. By default, watchexec
Skip default ignore statements. By default, watchexec ignores common temporary files for you, for example `*.swp`, `*.pyc`, and `.DS_Store`.
* `-v`, `--verbose`:
Prints diagnostic messages to STDERR
Prints diagnostic messages to STDERR.
* `--changes-only`:
Prints the paths that have changed as diagnostics to STDERR, but not everything else that `--verbose` prints.
* `-V`, `--version`:
Print the version of watchexec.