Added command line parameter validation