Skip to content

Commit f89d3d8

Browse files
committed
Add flag support
1 parent 15d73be commit f89d3d8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • implement-shell-tools/wc

implement-shell-tools/wc/wc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
w = True
1717
c = True
1818

19+
if args.words == True or args.line == True or args.bytes == True:
20+
l = args.line
21+
w = args.words
22+
c = args.bytes
23+
1924
dict = {}
2025
adict = {}
2126

0 commit comments

Comments
 (0)