FIXED issue: invalid scan type error thrown when valid --scan type is not specified at end of program arguments