We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7449be commit 45766e0Copy full SHA for 45766e0
1 file changed
implement-shell-tools/wc/wc.js
@@ -1,14 +1,18 @@
1
import { program } from "commander";
2
+import fs from "node:fs";
3
+import process from "node:process";
4
5
program
6
.name("wc")
7
.description("Mimics the wc command line tool")
8
.option("-w")
9
.option("-c")
- .option("-l");
10
+ .option("-l")
11
+ .argument("<files...>", "file to process");
12
13
program.parse();
14
15
const options = program.opts();
16
+const files = program.args;
17
-console.log(options);
18
+console.log(files);
0 commit comments