Permalink
Browse files

Add new invocation style to --help text

  • Loading branch information...
1 parent a2dcd72 commit aa2dbc8b0470d15e0e555f0d6de84bfcd45b1e3e @danielbeardsley danielbeardsley committed Dec 20, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 pipe-to-graphite.sh
View
2 pipe-to-graphite.sh
@@ -52,6 +52,8 @@ elif [ "$1" != "report-to-graphite" ]; then
cat <<-EOF >&2
Usage:
$(basename $0) '/command/to/run' >> /var/log/some-stats.log
+ Or (for use from cron or other automated invocations):
+ /command/to/run | $(basename $0) -
/command/to/run must:
* echo 'name number' pairs separated by newlines

0 comments on commit aa2dbc8

Please sign in to comment.