avar / app-inotify-hookable

The App::Inotify::Hookable CPAN module
4 stars 2 forks source link

disable recursive watches #4

Closed rtennill closed 8 years ago

rtennill commented 8 years ago

This could be me failing at Perl but just in case...

The -r option is enabled by default and in most cases is exactly what's wanted. In my case I wanted to disable the recursive watches but I don't see any way of doing this without modifying the source.

The same thing can probably be achieved using the path modified regex options but something like -r=no or similar is more appropriate.

avar commented 8 years ago

You can do this with --no-recursive in the style of boolean GNU-like options, I pushed a change to document this explicitly.