add check to ensure command line argument is provided