MCPcopy Create free account
hub / github.com/geekcomputers/Python / main

Function main

Cat/cat.py:128–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126
127
128def main():
129 args = parse_arguments()
130
131 if not args.files:
132 state = {
133 "line_number": 1,
134 "previous_was_blank": False,
135 }
136 process_stream(sys.stdin, args, state)
137 sys.exit(0)
138
139 had_error = process_files(args.files, args)
140
141 if had_error:
142 sys.exit(1)
143
144 sys.exit(0)
145
146
147if __name__ == "__main__":

Callers 1

cat.pyFile · 0.70

Calls 3

parse_argumentsFunction · 0.85
process_streamFunction · 0.85
process_filesFunction · 0.85

Tested by

no test coverage detected