langsharpe/trigger — pull request #2 by september28 (2013-08-27 17:07:37+00:00)
Title: A few added options

Hi Lang,

Thanks for your feedback at the weekend. It was indeed the case that the "always monitoring '.' directory" was causing the looping error. I was actually using yuicompressor to minify a css file, so when yui read the css file in, it was caught by trigger monitoring the same directory, thus causing the loop.

I also had an issue where trigger altogether stopped working which was weird. I discovered that fsevent_watch was not firing on file-level changes, because it will only do so if passed the -F option, so I added this as an option for trigger.

Finally I added a -d option for trigger to output debug information (all variable strings), this was mainly to trace the -F issue above, but I thought it might be good for someone else in the future.

I updated the usage string to show the available options (-c,-v,-f,-d)

Cheers,

Dan