import sys def read_dummy_file(file_name): with open(file_name) as f: data = f.read() print(data) if __name__ == "__main__": assert len(sys.argv) > 1 read_dummy_file(sys.argv[1])