update README close #364
Before adoption: this commit came in with the history the project adopted, so no landing records it.
move license info to LICENSE
authored by zhiyelee · committed by zhiyelee · parent 5a15a34 · Browse files · 2 files·+26 added−22 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+26 added−22 removed
- other:+26 added−22 removed
Provenance
- Commit
ef0a54f- Tree
bc7002a- Author
zhiyelee <zhiyelee@gmail.com>- Committer
zhiyelee <zhiyelee@gmail.com>- Parent
5a15a34
2 files changed+26 added−22 removed
added:LICENSE+22 added
1+(The MIT License)2+3+Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>4+5+Permission is hereby granted, free of charge, to any person obtaining6+a copy of this software and associated documentation files (the7+'Software'), to deal in the Software without restriction, including8+without limitation the rights to use, copy, modify, merge, publish,9+distribute, sublicense, and/or sell copies of the Software, and to10+permit persons to whom the Software is furnished to do so, subject to11+the following conditions:12+13+The above copyright notice and this permission notice shall be14+included in all copies or substantial portions of the Software.15+16+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,17+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF18+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.19+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY20+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,21+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE22+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.modified:Readme.md+4 added-22 removed
145 unmodified lines146 .parse(process.argv);147 ```148 149 When `.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. 150-The commander will try to find the executable script in __current directory__ with the name `scriptBasename-subcommand`, like `pm-install`, `pm-search`.150+The 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`.151 152+If the program is designed to installed globally, make sure the executables have proper modes, like `755`.153+154 ## Automated --help155 156 The help information is auto-generated based on the information commander already knows about your program, so the following `--help` info is for free:157 148 unmodified lines306 You can see more Demos in the [examples](https://github.com/tj/commander.js/tree/master/examples) directory.307 308 ## License309 308-(The MIT License)310+MIT311 310-Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>311-312-Permission is hereby granted, free of charge, to any person obtaining313-a copy of this software and associated documentation files (the314-'Software'), to deal in the Software without restriction, including315-without limitation the rights to use, copy, modify, merge, publish,316-distribute, sublicense, and/or sell copies of the Software, and to317-permit persons to whom the Software is furnished to do so, subject to318-the following conditions:319-320-The above copyright notice and this permission notice shall be321-included in all copies or substantial portions of the Software.322-323-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,324-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF325-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.326-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY327-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,328-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE329-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.