#!/usr/bin/env python3 import sys # Check the length of sys.argv if len(sys.argv) != 2: print('No file specified.') sys.exit() # Accept 1 command line argument a location # Print out the contents of that file with open(sys.argv[1]) as fd: print(''.join(fd.readlines()), end='')