Skip to content

Commit c70d7d9

Browse files
committed
add skeleton for flags/option cases
1 parent 914cfda commit c70d7d9

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

  • implement-shell-tools/wc

implement-shell-tools/wc/wc.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,14 @@ def counter(item):
119119
for path in args.paths:
120120
with open(path, "r") as f:
121121
content = f.read()
122-
if args.l:
123-
122+
stats = counter(content)
123+
if args.line:
124+
print(f"{lines} {path}")
125+
elif args.word:
126+
print()
127+
elif args.char:
128+
print()
129+
else:
130+
print("")
124131

125132

0 commit comments

Comments
 (0)