RetroMocha/obvious — pull request #40 by anlek (2014-01-09 08:30:14+00:00)
Title: New CLI system

Hey,
Like I emailed you, I added a new CLI system which makes it much easier to add CLI commands by making a simple command class:

```ruby
module Obvious
module CLI
module Command
#
# A command to display usage information for this application.
#
class Help < Base
class << self
def commands
["-h", "--help"]
end
def description
"Shows this help message"
end
end

def initialize(parser)
@parser = parser
end

#Executes the help command
def execute(view)
view.output(@parser.to_s)
view.report_success
end
end
end
end
end
```

Once the file is placed into `lib/obvious/cli/command` folder, it will be picked up by the system and included in the help output as well as just work.

I've also:
Improved 'obvious generate' command (and add 'g' shortcut)
Added 'obvious --help' command
Added 'obvious --version' command

Let me know what you think.