Adds check for required command-line argument