winton/stasis — pull request #41 by krbullock (2012-02-19 05:55:03+00:00)
Title: fix for issue #18

I tracked this down to what's apparently a bug in Ruby. `bin/stasis` takes the `-o/--only` argument from Slop and [splats it into the call to Stasis#render](https://github.com/winton/stasis/blob/v0.1.18/bin/stasis#L27). But observe what happens when you splat-expand nil:

>> def args(*arr); arr; end
=> nil
>> arr = nil
=> nil
>> args(*arr)
=> [nil]

Thus it happens that `#render` is being called with an explicit nil argument, making the path expansion explode with the backtrace listed in issue #18. Explicitly converting the `-o/--only` argument to an array before passing it to `#render` solves the issue.