I think they're almost the same. But in the error case, option is "?" and OPTARG is the actual input switch that caused the error. Eg: "-a"