Skip to content

CommandlineProcessing::generateOptionListWithDeclaredParameters

Looks for inputPrefix‐prefixed options.

Synopsis

Declared in <commandlineProcessing/commandline_processing.h>

[[visibility]]
std::vector<std::string>
generateOptionListWithDeclaredParameters(
    std::vector<std::string> const& argList,
    std::string inputPrefix);

Description

If isOptionTakingSecondParameter of the inputPrefix‐prefixed returns true, add the parameter(s) to the result list.

Return Value

List of matched options and parameters.

Parameters

Name

Description

argList

Argument list.

inputPrefix

Option prefix to match.

Created with MrDocs