Improved mandatory parameter check in command line scripts.