Skip to content

Commit 72c9e8e

Browse files
committed
updated output message for when a particular option is added by end user
1 parent d996f5b commit 72c9e8e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • implement-shell-tools/wc

implement-shell-tools/wc/wc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ def counter(item):
121121
content = f.read()
122122
stats = counter(content)
123123
if args.line:
124-
print(f"{stats[lines]} {path}")
124+
print(f"{stats['lines']} {path}")
125125
elif args.word:
126-
print()
126+
print(f"{stats['words']} {path}")
127127
elif args.char:
128-
print()
128+
print(f"{stats['characters']} {path}")
129129
else:
130-
print("")
130+
print(f"{stats['lines']} {stats['words']} {stats['characters']} {path}")
131131

132132

0 commit comments

Comments
 (0)