| 1181 | /************************************************************************/ |
| 1182 | |
| 1183 | std::string GDALGridGetParserUsage() |
| 1184 | { |
| 1185 | try |
| 1186 | { |
| 1187 | GDALGridOptions sOptions; |
| 1188 | GDALGridOptionsForBinary sOptionsForBinary; |
| 1189 | auto argParser = |
| 1190 | GDALGridOptionsGetParser(&sOptions, &sOptionsForBinary, 1); |
| 1191 | return argParser->usage(); |
| 1192 | } |
| 1193 | catch (const std::exception &err) |
| 1194 | { |
| 1195 | CPLError(CE_Failure, CPLE_AppDefined, "Unexpected exception: %s", |
| 1196 | err.what()); |
| 1197 | return std::string(); |
| 1198 | } |
| 1199 | } |
| 1200 | |
| 1201 | /************************************************************************/ |
| 1202 | /* CHECK_HAS_ENOUGH_ADDITIONAL_ARGS() */ |
no test coverage detected