harthur/nomnom — pull request #11 by paulmillr (2011-11-13 00:42:28+00:00)
Title: Rewrite nomnom in coffeescript

- Rewrited nomnom in coffeescript
- Removed **underscore.js** and **colors** dependencies
- Added `Cakefile` for fast building / testing
- Added "printHelpOnNoCommands" option that resolves issue #10.
- Added `parseConfig` function for parsing configs like this (coffee or js):

```coffeescript
config =
printHelpOnNoCommands: true
commands:
new:
help: "Create new project"
options:
appPath:
position: 1
help: "application path"
metavar: "APP_PATH"
required: true

buildPath:
abbr: "o"
help: "build path"
metavar: "DIRECTORY"
full: "output"

callback: (options) ->
"callback called"

generate:
help: "Generate model, view or route for current project"
options:
generator:
position: 1
help: "generator type"
metavar: "GENERATOR"
choices: [ "collection", "model", "router", "style", "template", "view" ]
required: true

name:
position: 2
help: "generator class name / filename"
metavar: "NAME"
required: true

callback: (options) ->
"generate called"

options:
version:
abbr: "v"
help: "display app version"
flag: true
callback: ->
"version called"

script: "app"
```