From 5a70faf9742fec22a6d9578cee6157f838fe2188 Mon Sep 17 00:00:00 2001 From: Darren Pearce Date: Wed, 14 Sep 2011 11:44:01 -0600 Subject: [PATCH] updated deletion option name to be more explict --- README.md | 4 ++-- lib/guard/cli.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9a099a8..9f5d038 100644 --- a/README.md +++ b/README.md @@ -213,13 +213,13 @@ $ guard --guardfile ~/.your_global_guardfile $ guard -G ~/.your_global_guardfile # shortcut ``` -### `-D`/`--deletions` option +### `-D`/`--watch-moves-deletions` option Guard can optionally watch moved or deleted files with: ``` bash $ guard start -D -$ guard start --deletions +$ guard start --watch-moves-deletions ``` An exhaustive list of options is available with: diff --git a/lib/guard/cli.rb b/lib/guard/cli.rb index f189b63..7c8c761 100644 --- a/lib/guard/cli.rb +++ b/lib/guard/cli.rb @@ -11,7 +11,7 @@ module Guard method_option :group, :type => :array, :default => [], :aliases => '-g', :banner => "Run only the passed groups" method_option :watchdir, :type => :string, :aliases => '-w', :banner => "Specify the directory to watch" method_option :guardfile, :type => :string, :aliases => '-G', :banner => "Specify a Guardfile" - method_option :deletions, :type => :boolean, :default => false, :aliases => '-D', :banner => "Watch for deleted files" + method_option :watch_moves_deletions, :type => :boolean, :default => false, :aliases => '-D', :banner => "Watch for moved or deleted files" desc "start", "Starts Guard" def start