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 4ee9b6f commit 655d823Copy full SHA for 655d823
1 file changed
implement-shell-tools/wc/wc.py
@@ -0,0 +1,26 @@
1
+import argparse
2
+
3
+parser = argparse.ArgumentParser(prog="wc",
4
+ description="simple wc clone")
5
6
+parser.add_argument("-w",
7
+ "--words",
8
+ dest="words_count",
9
+ action="store_true",
10
+ help="print word count")
11
12
+parser.add_argument("-l",
13
+ "--lines",
14
+ dest="lines_count",
15
16
+ help="print line count")
17
18
+parser.add_argument("-c",
19
+ "--bytes",
20
+ dest="byte_count",
21
22
+ help="print byte count")
23
24
+parser.add_argument("path")
25
26
+args = parser.parse_args()
0 commit comments