scriptcs/scriptcs — pull request #518 by per-samuelsson (2013-11-21 12:46:31+00:00)
Title: Fixing #515 - allowing non-script arguments to the CLI to be properly handled again

Changed the scriptcs entrypoint to handle the case where a script is given with no file extension a little differently, as discussed in https://github.com/scriptcs/scriptcs/issues/515.

The change basically mean that we'll watch out for the case when there is no script specified, and that we only extend the script name if its given and don't have an extension, and that we'll make the addition transparent in terms of what code will handle things like a missing file (it's now deferred to the command). This assures we don't ever risk messing with other commands.

Also added two new unit-tests, for the "-help" switch. Found no regresstion tests to add to though (and that is what is really needed to detect things like #515 from occuring in the first place). Feel free to drop or merge the unit tests if you think they add some value or not.