visionmedia/commander — Issue #42: Stock generated script is not runnable
Author: suan
Created: 2012-03-02 04:06:21+00:00
State: open

I'm not sure why commander tries to `require 'myscript'`in the generated template when I specify 'myscript' as the "Machine name" - I would think that for most commander use cases you're not looking to load a gem with the same name as your script...

In addition, the ':version' is not set to something correct, but is instead set to `Myscript::VERSION`.

These 2 things prevent a stock generated script from actually running without erroring out.

I propose removing the require statement, and setting the default version to '0.0.1'. Also, I think the "Machine name" prompt is unnecessary. Wouldn't it make sense to just use the filename of the file passed in as the `init` argument?

Don't mean to sound negative, but these things just seem bewildering to me :)