Skip to content
Myr

help

This file

Path

examples/help

13 lines · 388 bytes

Last changed by

Merge branch 'develop' into release/5.xJohn Geebefore adoption491b2e4

History of this file

Take it

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

npm update (#823)Tomoaki Abebefore adoptionaaa447a

lines 1–2why, one step back
1#!/usr/bin/env node
2

Merge branch 'develop' into release/5.xJohn Geebefore adoption491b2e4

lines 3–4why, one step back
3// const program = require('commander'); // (normal include)
4const program = require('../'); // include commander in git clone of commander repo

npm update (#823)Tomoaki Abebefore adoptionaaa447a

lines 5–13why, one step back
5
6program7 .version('0.0.1')8 .option('-f, --foo', 'enable some foo')9 .option('-b, --bar', 'enable some bar')10 .option('-B, --baz', 'enable some baz')11 .parse(process.argv);1213if (!program.args.length) program.help();