Pre-sort files by default, setting to disable
Some checks failed
Run Unit Tests / build-and-run-unit-tests (push) Failing after 6s
Some checks failed
Run Unit Tests / build-and-run-unit-tests (push) Failing after 6s
This commit is contained in:
parent
78ba5acd70
commit
553cf2a6ec
1 changed files with 5 additions and 5 deletions
10
src/parser.c
10
src/parser.c
|
@ -178,8 +178,8 @@ void simple_archiver_print_usage(void) {
|
||||||
"--chunk-min-size <bytes> : v1 file format minimum chunk size "
|
"--chunk-min-size <bytes> : v1 file format minimum chunk size "
|
||||||
"(default 4194304 or 4MiB)\n");
|
"(default 4194304 or 4MiB)\n");
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"--pre-sort-files : pre-sorts files by size so that the first file "
|
"--no-pre-sort-files : do NOT pre-sort files by size (by default "
|
||||||
"is the largest\n");
|
"enabled so that the first file is the largest)\n");
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"-- : specifies remaining arguments are files to archive/extract\n");
|
"-- : specifies remaining arguments are files to archive/extract\n");
|
||||||
fprintf(
|
fprintf(
|
||||||
|
@ -193,7 +193,7 @@ void simple_archiver_print_usage(void) {
|
||||||
SDArchiverParsed simple_archiver_create_parsed(void) {
|
SDArchiverParsed simple_archiver_create_parsed(void) {
|
||||||
SDArchiverParsed parsed;
|
SDArchiverParsed parsed;
|
||||||
|
|
||||||
parsed.flags = 0;
|
parsed.flags = 0x40;
|
||||||
parsed.filename = NULL;
|
parsed.filename = NULL;
|
||||||
parsed.compressor = NULL;
|
parsed.compressor = NULL;
|
||||||
parsed.decompressor = NULL;
|
parsed.decompressor = NULL;
|
||||||
|
@ -347,8 +347,8 @@ int simple_archiver_parse_args(int argc, const char **argv,
|
||||||
}
|
}
|
||||||
--argc;
|
--argc;
|
||||||
++argv;
|
++argv;
|
||||||
} else if (strcmp(argv[0], "--pre-sort-files") == 0) {
|
} else if (strcmp(argv[0], "--no-pre-sort-files") == 0) {
|
||||||
out->flags |= 0x40;
|
out->flags &= 0xFFFFFFBF;
|
||||||
} else if (argv[0][0] == '-' && argv[0][1] == '-' && argv[0][2] == 0) {
|
} else if (argv[0][0] == '-' && argv[0][1] == '-' && argv[0][2] == 0) {
|
||||||
is_remaining_args = 1;
|
is_remaining_args = 1;
|
||||||
} else if (argv[0][0] != '-') {
|
} else if (argv[0][0] != '-') {
|
||||||
|
|
Loading…
Reference in a new issue