mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Added option `--no-filter'.
committer: mfx <mfx> 978559146 +0000
This commit is contained in:
parent
c5e61413a4
commit
823ac11eb3
22
src/main.cpp
22
src/main.cpp
|
@ -523,20 +523,25 @@ static int do_option(int optc, const char *arg)
|
||||||
opt->no_env = true;
|
opt->no_env = true;
|
||||||
break;
|
break;
|
||||||
// compression settings
|
// compression settings
|
||||||
case 525:
|
case 520:
|
||||||
opt->small = 1;
|
opt->small = 1;
|
||||||
break;
|
break;
|
||||||
case 526:
|
case 521:
|
||||||
getoptvar(&opt->filter, 0, 255);
|
getoptvar(&opt->filter, 0, 255);
|
||||||
opt->all_filters = false;
|
opt->all_filters = false;
|
||||||
break;
|
break;
|
||||||
case 527:
|
case 522: // --no-filter
|
||||||
|
opt->filter = 0;
|
||||||
|
opt->all_filters = false;
|
||||||
|
break;
|
||||||
|
case 523: // --all-filters
|
||||||
opt->all_filters = true;
|
opt->all_filters = true;
|
||||||
opt->filter = -1;
|
opt->filter = -1;
|
||||||
break;
|
break;
|
||||||
case 528:
|
case 524: // --all-methods
|
||||||
opt->all_methods = true;
|
opt->all_methods = true;
|
||||||
opt->method = -1;
|
opt->method = -1;
|
||||||
|
break;
|
||||||
// compression parms
|
// compression parms
|
||||||
case 531:
|
case 531:
|
||||||
getoptvar(&opt->crp.c_flags, 0, 3);
|
getoptvar(&opt->crp.c_flags, 0, 3);
|
||||||
|
@ -734,10 +739,11 @@ static const struct mfx_option longopts[] =
|
||||||
{"n2d", 0x10, 0, 704}, // --n2d
|
{"n2d", 0x10, 0, 704}, // --n2d
|
||||||
{"nrv2d", 0x10, 0, 704}, // --nrv2d
|
{"nrv2d", 0x10, 0, 704}, // --nrv2d
|
||||||
// compression settings
|
// compression settings
|
||||||
{"all-filters", 0x10, 0, 527},
|
{"all-filters", 0x10, 0, 523},
|
||||||
{"all-methods", 0x10, 0, 528},
|
{"all-methods", 0x10, 0, 524},
|
||||||
{"filter", 0x31, 0, 526}, // --filter=
|
{"filter", 0x31, 0, 521}, // --filter=
|
||||||
{"small", 0x10, 0, 525},
|
{"no-filter", 0x10, 0, 522},
|
||||||
|
{"small", 0x10, 0, 520},
|
||||||
// compression runtime parameters
|
// compression runtime parameters
|
||||||
{"crp-cf", 0x31, 0, 531},
|
{"crp-cf", 0x31, 0, 531},
|
||||||
{"crp-sl", 0x31, 0, 532},
|
{"crp-sl", 0x31, 0, 532},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user