Update CLI based on @sindresorhus feedback

* don't use flagged args for file and selector
* exit properly if error opening file
Merge master in and update formatting
Fix syntax and merge differences
Rename selector variable to type
Much nicer help logging
Merge pull request #6 from jackfranklin/add-cli

Update CLI based on @sindresorhus feedback