Skip to content
Myr

Fix example creating non-global command

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by John Gee · parent f51f8da · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:Readme.md+1 added-1 removed
25 unmodified lines
26For larger programs which may use commander in multiple ways, including unit testing, it is better to create a local Command object to use.2728 ```js29 const commander = require('commander');30 const program = new commander.Command;30 const program = new commander.Command();31 program.version('0.0.1);32 ```3334
485 unmodified lines