CommandlineProcessing::generateOptionWithNameParameterList
Find all options matching the given prefix.
Synopsis
Declared in <commandlineProcessing/commandline_processing.h>
[[visibility]]
std::vector<std::string>
generateOptionWithNameParameterList(
std::vector<std::string>& argList,
std::string inputPrefix,
std::string newPrefix = "");
Description
Find all options matching 'inputPrefix:optionName' || 'inputPrefix:optionName optionValue' from argList, strip off 'inputPrefix:' or replace it by 'newPrefix' if provided. Returns a string list of matched options. All matching options and values are removed from argList.
Return Value
List of matched options.
Parameters
Name |
Description |
argList |
Argument list to scan and update. |
inputPrefix |
Option prefix to match. |
newPrefix |
Replacement prefix. |
Created with MrDocs