fix --type and --specFile inconsistence issue(PR 1091006)