intro.coffee 847 B

1234567891011121314151617181920212223
  1. options = require('../lib/dreamopt') [
  2. "Usage: myscript [options] source [destination]"
  3. " source Source file to compile into css #required"
  4. " destination Destination file (defaults to source file with .css extension)", (value, options) ->
  5. if !value
  6. return options.source.replace(/\.mess/, '') + '.css'
  7. "Processing options:"
  8. " -n, --dry-run Don't write anything to disk"
  9. " -m, --mode MODE Set execution mode: easy, medium, hard (defaults to medium)"
  10. "Connection options:"
  11. " -p, --port PORT Port to connect to (default: 80)"
  12. " -h, --host HOST Host to connect to (default is localhost)"
  13. "Getting useful information:"
  14. " --reporters Print a list of reporters and exit", ->
  15. console.log "Reporters: foo, bar, boz"
  16. process.exit 0
  17. ]
  18. console.log JSON.stringify(options, null, 2)