From 194b59b3b21050f6516725e5b18d76829504a863 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sat, 22 Dec 2018 09:12:10 +0100 Subject: [PATCH] Update Info.cpp Add a simple check to avoid verbose + silent mode together, --- tools/assimp_cmd/Info.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/assimp_cmd/Info.cpp b/tools/assimp_cmd/Info.cpp index d6d3de804..050dbf989 100644 --- a/tools/assimp_cmd/Info.cpp +++ b/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) {