Lines Matching refs:argument

194     DISPLAY( "To protect the console from binary flooding (bad argument mistake)\n");
363 const char* argument = argv[i];
365 if(!argument) continue; /* Protection if argument empty */
368 if (!all_arguments_are_files && argument[0]=='-') {
370 if (argument[1]==0) {
377 if (argument[1]=='-') {
378 if (!strcmp(argument, "--")) { all_arguments_are_files = 1; continue; }
379 if (!strcmp(argument, "--compress")) { mode = om_compress; continue; }
380 if ( (!strcmp(argument, "--decompress"))
381 || (!strcmp(argument, "--uncompress"))) {
386 if (!strcmp(argument, "--multiple")) { multiple_inputs = 1; continue; }
387 if (!strcmp(argument, "--test")) { mode = om_test; continue; }
388 if (!strcmp(argument, "--force")) { LZ4IO_setOverwrite(prefs, 1); continue; }
389 if (!strcmp(argument, "--no-force")) { LZ4IO_setOverwrite(prefs, 0); continue; }
390 if ((!strcmp(argument, "--stdout"))
391 || (!strcmp(argument, "--to-stdout"))) { forceStdout=1; output_filename=stdoutmark; continue; }
392 if (!strcmp(argument, "--frame-crc")) { LZ4IO_setStreamChecksumMode(prefs, 1); BMK_skipChecksums(0); continue; }
393 if (!strcmp(argument, "--no-frame-crc")) { LZ4IO_setStreamChecksumMode(prefs, 0); BMK_skipChecksums(1); continue; }
394 if (!strcmp(argument, "--no-crc")) { LZ4IO_setStreamChecksumMode(prefs, 0); LZ4IO_setBlockChecksumMode(prefs, 0); BMK_skipChecksums(1); continue; }
395 if (!strcmp(argument, "--content-size")) { LZ4IO_setContentSize(prefs, 1); continue; }
396 if (!strcmp(argument, "--no-content-size")) { LZ4IO_setContentSize(prefs, 0); continue; }
397 if (!strcmp(argument, "--list")) { mode = om_list; continue; }
398 if (!strcmp(argument, "--sparse")) { LZ4IO_setSparseFile(prefs, 2); continue; }
399 if (!strcmp(argument, "--no-sparse")) { LZ4IO_setSparseFile(prefs, 0); continue; }
400 if (!strcmp(argument, "--favor-decSpeed")) { LZ4IO_favorDecSpeed(prefs, 1); continue; }
401 if (!strcmp(argument, "--verbose")) { displayLevel++; continue; }
402 if (!strcmp(argument, "--quiet")) { if (displayLevel) displayLevel--; continue; }
403 if (!strcmp(argument, "--version")) { DISPLAYOUT(WELCOME_MESSAGE); goto _cleanup; }
404 if (!strcmp(argument, "--help")) { usage_advanced(exeName); goto _cleanup; }
405 if (!strcmp(argument, "--keep")) { LZ4IO_setRemoveSrcFile(prefs, 0); continue; } /* keep source file (default) */
406 if (!strcmp(argument, "--rm")) { LZ4IO_setRemoveSrcFile(prefs, 1); continue; }
407 if (longCommandWArg(&argument, "--fast")) {
409 if (*argument == '=') {
411 ++argument;
412 fastLevel = readU32FromChar(&argument);
418 } else if (*argument != 0) {
428 if (!strcmp(argument, "--best")) { cLevel=LZ4HC_CLEVEL_MAX; continue; }
431 while (argument[1]!=0) {
432 argument ++;
436 if (!strcmp(argument, "c0")) { cLevel=0; argument++; continue; } /* -c0 (fast compression) */
437 if (!strcmp(argument, "c1")) { cLevel=9; argument++; continue; } /* -c1 (high compression) */
438 if (!strcmp(argument, "c2")) { cLevel=12; argument++; continue; } /* -c2 (very high compression) */
439 if (!strcmp(argument, "hc")) { cLevel=12; argument++; continue; } /* -hc (very high compression) */
440 if (!strcmp(argument, "y")) { LZ4IO_setOverwrite(prefs, 1); continue; } /* -y (answer 'yes' to overwrite permission) */
443 if ((*argument>='0') && (*argument<='9')) {
444 cLevel = (int)readU32FromChar(&argument);
445 argument--;
450 switch(argument[0])
458 argument++;
459 cLevelLast = (int)readU32FromChar(&argument);
460 argument--;
467 if (argument[1] == '\0') {
476 dictionary_filename = argument + 1;
478 /* skip to end of argument so that we jump to parsing next argument */
479 argument += strlen(argument) - 1;
515 while (argument[1]!=0) {
517 switch(argument[1])
519 case 'D': LZ4IO_setBlockMode(prefs, LZ4IO_blockLinked); argument++; break;
520 case 'I': LZ4IO_setBlockMode(prefs, LZ4IO_blockIndependent); argument++; break;
521 case 'X': LZ4IO_setBlockChecksumMode(prefs, 1); argument ++; break; /* disabled by default */
523 if (argument[1] < '0' || argument[1] > '9') {
528 argument++;
529 B = readU32FromChar(&argument);
530 argument--;
573 argument++;
574 iters = readU32FromChar(&argument);
575 argument--;
592 if (multiple_inputs) { inFileNames[ifnIdx++] = argument; continue; }
596 if (!input_filename) { input_filename = argument; continue; }
600 output_filename = argument;
608 argument);