updated deletion option name to be more explict

This commit is contained in:
Darren Pearce 2011-09-14 11:44:01 -06:00
parent 879732fb43
commit 5a70faf974
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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