Skip to content

Commit 5a6d218

Browse files
committedApr 8, 2020
chore: update info
1 parent e8d7324 commit 5a6d218

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
 

‎README.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
# cli-starter
22

33
CLI starter kit on top of Node.js
4+
5+
- Makes use of [commander.js](https://github.com/tj/commander.js) for the purpose of argument parsing.
6+
- `Eslint` configured to be used alongwith `prettier`.
7+
8+
```sh
9+
Usage: cli [options]
10+
11+
Options:
12+
-V, --version output the version number
13+
-h, --help display help for command
14+
```

‎src/cli.js

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ const program = require("commander");
22

33
const { version } = require("../package");
44

5+
program.name("cli")
6+
57
// register version flag
68
program.version(version);
79

0 commit comments

Comments
 (0)
Please sign in to comment.