Skip to content

Commit 64cfdd2

Browse files
committed
cat: error
1 parent e31edff commit 64cfdd2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • implement-shell-tools/cat

implement-shell-tools/cat/cat.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
show_lines = args.number
1111
non_blank = args.nonblank
1212

13+
if show_lines == True and non_blank == True:
14+
print("Error: Cannot use -n and -b together. Please use only one flag at a time.")
15+
exit()
16+
1317
text = ""
1418
i = 1
1519

0 commit comments

Comments
 (0)