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 cc5dbf9 commit f73102eCopy full SHA for f73102e
1 file changed
implement-shell-tools/wc/wc.py
@@ -51,5 +51,12 @@ def count_text(text):
51
else:
52
print(lines, words, chars, path)
53
54
-if len(args.path) > 1 and not args.l and not args.w and not args.c:
55
- print(lineCounter, wordCounter, charCounter, "total")
+if len(args.path) > 1:
+ if args.l:
56
+ print(lineCounter, "total")
57
+ elif args.w:
58
+ print(wordCounter, "total")
59
+ elif args.c:
60
+ print(charCounter, "total")
61
+ else:
62
+ print(lineCounter, wordCounter, charCounter, "total")
0 commit comments