about summary refs log tree commit diff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README8
1 files changed, 6 insertions, 2 deletions
diff --git a/README b/README
index b93d8f8..c693be7 100644
--- a/README
+++ b/README
@@ -4,7 +4,7 @@ NAME
      rwc – report when changed
 
 SYNOPSIS
-     rwc [-0d] [path ...]
+     rwc [-0dp] [path ...]
 
 DESCRIPTION
      rwc takes a list of files or directories, watches them using inotify(7),
@@ -22,13 +22,17 @@ DESCRIPTION
      -d      Also detect file deletion.  In this case, deleted files are
              prefixed by ‘- ’ (that is, a dash and a space).
 
+     -p      Pipe mode; don't report changes while the standard output pipe is
+             not empty.  Use this to pipe rwc to programs which read standard
+             input slowly.
+
 EXIT STATUS
      The rwc utility exits 0 on success, and >0 if an error occurs.
 
 EXAMPLES
      Watch all source files and run make(1) when something changes:
 
-           % git ls-files | rwc | xe -v -s make
+           % git ls-files | rwc -p | xe -v -s make
 
      Make a sound when a download is done: