From 3fa80ffa082172e2ca996ff24baeb1bccded10f6 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sun, 17 Nov 2024 00:27:13 +0100 Subject: [PATCH] gdalinfo: bring back stdout streaming mode that went away during argparse refactor --- apps/gdalinfo_bin.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/gdalinfo_bin.cpp b/apps/gdalinfo_bin.cpp index 3bbd4f512e1a..c3e7ece1ce6d 100644 --- a/apps/gdalinfo_bin.cpp +++ b/apps/gdalinfo_bin.cpp @@ -76,6 +76,11 @@ MAIN_START(argc, argv) GDALInfoOptionsForBinary sOptionsForBinary; + if (CSLFindString(argv, "-stdout") < 0) + { + argv = CSLAddString(argv, "-stdout"); + } + std::unique_ptr psOptions{ GDALInfoOptionsNew(argv + 1, &sOptionsForBinary), GDALInfoOptionsFree}; CSLDestroy(argv);