Skip to content
Myr

help

This file

Path

examples/help

17 lines · 307 bytes

Last changed by

fix examples/help. Closes #89TJ Holowaychukbefore adoption1fc8330

History of this file

Take it

Added quick `.prompt(obj, callback)` support. Closes #49TJ Holowaychukbefore adoptionf2060ff

lines 1–15why, one step back
1#!/usr/bin/env node
23/**4 * Module dependencies.5 */67var program = require('../');89program10 .version('0.0.1')11 .option('-f, --foo', 'enable some foo')12 .option('-b, --bar', 'enable some bar')13 .option('-B, --baz', 'enable some baz')14 .parse(process.argv);15

fix examples/help. Closes #89TJ Holowaychukbefore adoption1fc8330

line 16why, one step back
16if (!program.args.length) program.help();

Added quick `.prompt(obj, callback)` support. Closes #49TJ Holowaychukbefore adoptionf2060ff

line 17why, one step back
17