Skip to content

Commit

Permalink
Add description of options to README
Browse files Browse the repository at this point in the history
Fixes joh#67
  • Loading branch information
joh committed Feb 17, 2019
1 parent 11b7811 commit 5b53876
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,15 @@

~ Usage

when-changed FILE COMMAND...
when-changed FILE [FILE ...] -c COMMAND
when-changed [OPTION] FILE COMMAND...
when-changed [OPTION] FILE [FILE ...] -c COMMAND

`%f` gets replaced with the file that changed:
FILE can be a directory. Use %f to pass the filename to the command.

when-changed FILE [FILE ...] -c echo '%f changed'
Options:
-r Watch recursively
-v Verbose output. Multiple -v options increase the verbosity.
The maximum is 3: -vvv.
-1 Don't re-run command if files changed while command was running
-s Run command immediately at start

0 comments on commit 5b53876

Please sign in to comment.