Skip to content

CommandlineProcessing::isOptionWithParameter

Search 'argv' for 'optionPrefixOption value' (float).

Synopsis

Declared in <commandlineProcessing/commandline_processing.h>

[[visibility]]
bool
isOptionWithParameter(
    std::vector<std::string>& argv,
    std::string optionPrefix,
    std::string Option,
    float& optionParameter,
    bool removeOption);

Return Value

True if the option was found.

Parameters

Name

Description

argv

Argument vector to search.

optionPrefix

Prefix for the option.

Option

Option name or regex.

optionParameter

Receives the parsed value.

removeOption

Whether to remove the option from argv.

Created with MrDocs