| 2558 | /************************************************************************/ |
| 2559 | |
| 2560 | std::string GDALBuildVRTGetParserUsage() |
| 2561 | { |
| 2562 | try |
| 2563 | { |
| 2564 | GDALBuildVRTOptions sOptions; |
| 2565 | GDALBuildVRTOptionsForBinary sOptionsForBinary; |
| 2566 | auto argParser = |
| 2567 | GDALBuildVRTOptionsGetParser(&sOptions, &sOptionsForBinary); |
| 2568 | return argParser->usage(); |
| 2569 | } |
| 2570 | catch (const std::exception &err) |
| 2571 | { |
| 2572 | CPLError(CE_Failure, CPLE_AppDefined, "Unexpected exception: %s", |
| 2573 | err.what()); |
| 2574 | return std::string(); |
| 2575 | } |
| 2576 | } |
| 2577 | |
| 2578 | /************************************************************************/ |
| 2579 | /* GDALBuildVRTOptionsNew() */ |
no test coverage detected