Skip to content

Commit

Permalink
gdalinfo: bring back stdout streaming mode that went away during argp…
Browse files Browse the repository at this point in the history
…arse refactor
  • Loading branch information
rouault committed Nov 16, 2024
1 parent f84b0b9 commit 3fa80ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/gdalinfo_bin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ MAIN_START(argc, argv)

GDALInfoOptionsForBinary sOptionsForBinary;

if (CSLFindString(argv, "-stdout") < 0)
{
argv = CSLAddString(argv, "-stdout");
}

std::unique_ptr<GDALInfoOptions, decltype(&GDALInfoOptionsFree)> psOptions{
GDALInfoOptionsNew(argv + 1, &sOptionsForBinary), GDALInfoOptionsFree};
CSLDestroy(argv);
Expand Down

0 comments on commit 3fa80ff

Please # to comment.