Revert bin script back to original, add tests.

It appears that the code that was meant to be in the file was overwritten with an autogenerated bin stub.
Add handlers for partial calls in commandline usage.

Closes #105.
Fix for 1.8.7 commandline tests.