We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0583f4c commit 688b8cdCopy full SHA for 688b8cd
1 file changed
apps/cli/index.ts
@@ -18,7 +18,8 @@ Commands
18
status Show corpus statistics
19
20
Options
21
- --help Show help for a command
+ --help, -h Show help for a command
22
+ --version, -v Show version
23
24
Examples
25
corpus scrape --crawl 3 --batch 100
@@ -35,6 +36,11 @@ async function main() {
35
36
process.exit(0);
37
}
38
39
+ if (command === "--version" || command === "-v") {
40
+ console.log(VERSION);
41
+ process.exit(0);
42
+ }
43
+
44
const commandArgs = args.slice(1);
45
46
switch (command) {
0 commit comments