divshot/superstatic — pull request #68 by jenius (2014-04-30 22:33:18+00:00)
Title: A bunch of refactors to the cli

So it seems like there are no tests in place for the CLI unfortunately, so some of this might be breaking, as I didn't manually test every function. I'd like to get this to a place where we can easily add those as well, but for this first pass just a bunch of cleanup and reorganization. Summary:

- clean up syntax and whitespace errors
- move functions into the order they are read in
- remove unneeded error handling
- use minimist to configure aliases and defaults
- use callbacks instead of nextTick
- take html page out of bin folder, move to lib/browser
- remove _defaults from bin, include directly
- normalize the error page path, making it not break on windows
- remove jsun, use normal error handling instead
- use feedback consistently instead of console
- align variable blocks
- remove unused variables