makaroni4/sandi_meter — pull request #1 by s2k (2013-09-16 17:53:20+00:00)
Title: Don't raise an exception when bin/sandi_meter is called without argument

Great fun lightning talk at Baruco. (Also, I find it amazing that you wrote that in such a short period of time).

Any yet…:

Without giving an existing path to the script it raised a Type Error (lib/file_scanner.rb:11:in `directory?': no implicit conversion of nil into String (TypeError)).
It now defaults to the current directory.

What do you think? I assume a more friendly message is also reasonable, along the lines of "sand_meter needs a file or directory name as an argument.