Skip to content

Commit

Permalink
Merge pull request facebook#4289 from facebook/autoultra
Browse files Browse the repository at this point in the history
--ultra automatically triggered with --long and --patch-from
  • Loading branch information
Cyan4973 authored Feb 10, 2025
2 parents e3a9351 + aebffd6 commit 5b8575a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion programs/zstdcli.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,10 +1108,11 @@ int main(int argCount, const char* argv[])
#ifndef ZSTD_NOTRACE
if (longCommandWArg(&argument, "--trace")) { char const* traceFile; NEXT_FIELD(traceFile); TRACE_enable(traceFile); continue; }
#endif
if (longCommandWArg(&argument, "--patch-from")) { NEXT_FIELD(patchFromDictFileName); continue; }
if (longCommandWArg(&argument, "--patch-from")) { NEXT_FIELD(patchFromDictFileName); ultra = 1; continue; }
if (longCommandWArg(&argument, "--long")) {
unsigned ldmWindowLog = 0;
ldmFlag = 1;
ultra = 1;
/* Parse optional window log */
if (*argument == '=') {
++argument;
Expand Down

0 comments on commit 5b8575a

Please sign in to comment.