Plato on Github
Report Home
node_modules/dreamopt/examples/intro.js
Maintainability
80.54
Lines of code
15
Difficulty
6.52
Estimated Errors
0.12
Function weight
By Complexity
By SLOC
// Generated by IcedCoffeeScript 1.3.1c (function() { var options; options = require('../lib/dreamopt')([ "Usage: myscript [options] source [destination]", " source Source file to compile into css #required", " destination Destination file (defaults to source file with .css extension)", function(value, options) { if (!value) return options.source.replace(/\.mess/, '') + '.css'; }, "Processing options:", " -n, --dry-run Don't write anything to disk", " -m, --mode MODE Set execution mode: easy, medium, hard (defaults to medium)", "Connection options:", " -p, --port PORT Port to connect to (default: 80)", " -h, --host HOST Host to connect to (default is localhost)", "Getting useful information:", " --reporters Print a list of reporters and exit", function() { console.log("Reporters: foo, bar, boz"); return process.exit(0); } ]); console.log(JSON.stringify(options, null, 2)); }).call(this);