rb2k/viddl-rb — pull request #30 by kl (2012-08-28 14:06:21+00:00)
Title: Refactoring of the viddl-rb bin utility

Hey I made some changes to the viddl-rb utility code to hopefully make it a bit clearer what's going on. I split the functionality in to new classes (that made sense to me :) ) and I also made the error checking a bit more robust.

Another thing I did was to replace the explicit exit statements with exceptions. I doesn't really matter for the utility, but I have some ideas on how to librarify the code (so you could for example use it for a website) and then it's not so good to have exit calls in the code. Some plugins still have exit calls, but it should be fairly simple to change them to exceptions.

So let me know what you think about these changes or if there's something you think should be changed.