fixed illegal option -h issue