Permalink
Browse files

messing up with usage

  • Loading branch information...
msuarz committed Oct 16, 2012
1 parent 3054ae8 commit e275810b3bd7f0ce497932c24afa1cc43024b2af
Showing with 19 additions and 3 deletions.
  1. +2 −2 docs/src/frank.coffee
  2. +17 −1 src/readers/settings.coffee
View
@@ -2,6 +2,6 @@
class @Frank
- '[>\$] frank @args': (args) ->
- console.log args
+ '[>\$] frank @args': (args, output) ->
+ console.log output
console.log $ 'coffee src/frank ' + args
@@ -1,10 +1,26 @@
fs = require 'fs'
path = require 'path'
-{ argv } = require 'optimist'
_ = require 'underscore'
{ defaults } = require '../settings'
+usage = '''
+ Usage: frank [docs] [options]
+
+ Docs: [docs.root\[docs.type]]
+
+ shortcut to set root & type properties in settings.docs
+
+ Options:
+
+ these become settings properties
+'''
+
+optimist = require 'optimist'
+argv = optimist.usage(usage).argv
+
+optimist.showHelp()
+
@read = ->
global.settings = {}
merge settings, defaults

0 comments on commit e275810

Please sign in to comment.