defaults
This file
Path
examples/defaults
22 lines · 609 bytes
Last changed by
Examples: use "require" that works from git repo, and lint. (#1072)John Geebefore adoption57e9d98
History of this fileTake it
The walk stopped after 200 commits: lines older than b2aad7a point at it.
Merge pull request #453 from zhiyelee/masterZhiye Libefore adoptionb2aad7a
lines 1–16why, one step back1#!/usr/bin/env node23/**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')Examples: use "require" that works from git repo, and lint. (#1072)John Geebefore adoption57e9d98
line 17why, one step back17 .option('-l, --list [items]', 'Specify list items defaulting to 1,2,3', list, [1, 2, 3])Merge pull request #453 from zhiyelee/masterZhiye Libefore adoptionb2aad7a
lines 18–22why, one step back18 .parse(process.argv);1920console.log(' - %s template engine', program.templateEngine);21console.log(' - %s cheese', program.cheese);22console.log(' - %j', program.list);