소스 검색

Update Info.cpp

Add a simple check to avoid verbose + silent mode together,
Kim Kulling 6 년 전
부모
커밋
194b59b3b2
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      tools/assimp_cmd/Info.cpp

+ 6 - 0
tools/assimp_cmd/Info.cpp

@@ -319,6 +319,12 @@ int Assimp_Info (const char* const* params, unsigned int num)
 		}
 	}
 
+	// Verbose and silent at the same time are not allowed
+	if ( verbose && silent ) {
+		printf("assimp info: Invalid arguments, verbose and silent at the same time are forbitten. ");
+		return 1;
+	}
+	
 	// do maximum post-processing unless -r was specified
 	ImportData import;
 	if (!raw) {