Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit bf038c9

Browse files
committed
Add option descriptions to CLI --help. Refs #26
1 parent 9ecda8b commit bf038c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bin/sqlite-parser.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ if (args['version']) {
1818
}
1919

2020
if (args['help'] || args._.length === 0) {
21-
console.log(`Usage: sqlite-parser infile [--output outfile]`);
21+
console.log(`Usage:\tsqlite-parser [infile]\n`);
22+
console.log(`Option\t\t\tAlias\tDescription`);
23+
console.log(`--output [outfile]\t-o\tWrite output to a file instead of stdout`);
24+
console.log(`--version\t\t-v\tGet current parser version`);
2225
process.exit(0);
2326
}
2427

0 commit comments

Comments
 (0)