Skip to content

Commit

Permalink
sozip: support generic command line options
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 26, 2023
1 parent f13cf86 commit bc9a8a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/sozip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ MAIN_START(nArgc, papszArgv)
CPLStringList aosFiles;
CPLStringList aosOptions;

EarlySetConfigOptions(nArgc, papszArgv);
nArgc = GDALGeneralCmdLineProcessor(nArgc, &papszArgv, 0);
if (nArgc < 1)
exit(-nArgc);

/* -------------------------------------------------------------------- */
/* Parse command line. */
/* -------------------------------------------------------------------- */
Expand All @@ -390,6 +395,7 @@ MAIN_START(nArgc, papszArgv)
"is running against GDAL %s\n",
papszArgv[0], GDAL_RELEASE_NAME,
GDALVersionInfo("RELEASE_NAME"));
CSLDestroy(papszArgv);
return 0;
}
else if (strcmp(papszArgv[iArg], "--help") == 0)
Expand Down Expand Up @@ -763,6 +769,7 @@ MAIN_START(nArgc, papszArgv)
}
}
CPLCloseZip(hZIP);
CSLDestroy(papszArgv);
return 0;
}
MAIN_END

0 comments on commit bc9a8a6

Please sign in to comment.