You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description="copying cat commands behavior with -n and -b flags"
11
+
)
12
+
parser.add_argument("-n", "--number", action="store_true", help="Number all output lines") #with store true argument behaves like a boolean, flag present returns true, not present = false.
files=expand_files(args.files) #list of filenames or patterns user typed passed to expand_files helper that uses glob module to expand patterns to actual file paths
54
+
ifnotfiles:
55
+
sys.exit(1) #programs exits with status code 1- signals and error if no files were found
0 commit comments