Skip to content
Myr

fix typo

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

authored by zhiyelee · committed by zhiyelee · parent 0109a44 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:Readme.md+2 added-2 removed
145 unmodified lines
146 .parse(process.argv);147```148149When `.command()` is invoked with a description argument, no `.action(callback)` should be called to handle sub-commands, otherwise there will be an error. This tells commander that you're going to use separate executables for sub-commands, much like `git(1)` and other popular tools. 150The commander will try to search the executables in the directory of the entry script(like `./examples/pm`) with the name `program-command`, like `pm-install`, `pm-search`.150The commander will try to search the executables in the directory of the entry script (like `./examples/pm`) with the name `program-command`, like `pm-install`, `pm-search`.151152If the program is designed to installed globally, make sure the executables have proper modes, like `755`.153154## Automated --help
147 unmodified lines
302303program.parse(process.argv);304```305306You can see more Demos in the [examples](https://github.com/tj/commander.js/tree/master/examples) directory.306More Demos can be found in the [examples](https://github.com/tj/commander.js/tree/master/examples) directory.307308## License309310MIT
1 unmodified line