-v and --verbose increase display level by 1

dev
Yann Collet 2016-07-15 19:43:30 +02:00
parent 8e0084796a
commit 988bcf360a
1 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ int main(int argCount, const char** argv)
if (!strcmp(argument, "--force")) { FIO_overwriteMode(); continue; } if (!strcmp(argument, "--force")) { FIO_overwriteMode(); continue; }
if (!strcmp(argument, "--version")) { displayOut=stdout; DISPLAY(WELCOME_MESSAGE); CLEAN_RETURN(0); } if (!strcmp(argument, "--version")) { displayOut=stdout; DISPLAY(WELCOME_MESSAGE); CLEAN_RETURN(0); }
if (!strcmp(argument, "--help")) { displayOut=stdout; CLEAN_RETURN(usage_advanced(programName)); } if (!strcmp(argument, "--help")) { displayOut=stdout; CLEAN_RETURN(usage_advanced(programName)); }
if (!strcmp(argument, "--verbose")) { displayLevel=4; continue; } if (!strcmp(argument, "--verbose")) { displayLevel++; continue; }
if (!strcmp(argument, "--quiet")) { displayLevel--; continue; } if (!strcmp(argument, "--quiet")) { displayLevel--; continue; }
if (!strcmp(argument, "--stdout")) { forceStdout=1; outFileName=stdoutmark; displayLevel-=(displayLevel==2); continue; } if (!strcmp(argument, "--stdout")) { forceStdout=1; outFileName=stdoutmark; displayLevel-=(displayLevel==2); continue; }
if (!strcmp(argument, "--ultra")) { FIO_setMaxWLog(0); continue; } if (!strcmp(argument, "--ultra")) { FIO_setMaxWLog(0); continue; }
@ -325,7 +325,7 @@ int main(int argCount, const char** argv)
case 'f': FIO_overwriteMode(); forceStdout=1; argument++; break; case 'f': FIO_overwriteMode(); forceStdout=1; argument++; break;
/* Verbose mode */ /* Verbose mode */
case 'v': displayLevel=4; argument++; break; case 'v': displayLevel++; argument++; break;
/* Quiet mode */ /* Quiet mode */
case 'q': displayLevel--; argument++; break; case 'q': displayLevel--; argument++; break;