Skip to content
Myr

defaults

This file

Path

examples/defaults

22 lines · 607 bytes

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 778faa3 point at it.

miscTj Holowaychukbefore adoption778faa3

lines 1–22why, one step back
1#!/usr/bin/env node
23/**4 * Module dependencies.5 */67var program = require('../');89function list(val) {10 return val.split(',').map(Number);11}1213program14 .version('0.0.1')15 .option('-t, --template-engine [engine]', 'Add template [engine] support', 'jade')16 .option('-c, --cheese [type]', 'Add the specified type of cheese [marble]', 'marble')17 .option('-l, --list [items]', 'Specify list items defaulting to 1,2,3', list, [1,2,3])18 .parse(process.argv);1920console.log(' - %s template engine', program.templateEngine);21console.log(' - %s cheese', program.cheese);22console.log(' - %j', program.list);