Document the argument processing in the manpage

Fixes #82
This commit is contained in:
Félix Saparelli 2021-04-17 01:58:42 +12:00
parent f1c7b555e1
commit 749bf89b6c
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ At startup, the specified <command> (passing any supplied <argument>s) is run on
* <command>:
Command to run when watched files are modified, and at startup, unless `--postpone` is specified. All <argument>s are passed to <command>. If you pass flags to the command, you should separate it with `--`, for example: `watchexec -w src -- rsync -a src dest`.
Behaviour depends on the value of `--shell`: for all except `none`, every part of <command> is joined together into one string with a single ascii space character, and given to the shell as described. For `none`, each distinct element of <command> is passed as per the execvp(3) convention: first argument is the program, as a file or searched in the `PATH`, rest are arguments.
* `-e`, `--exts` <extensions>:
Comma-separated list of file extensions to filter by. Leading dots (.rs) are allowed. (This is a shorthand for `-f`).