CommandlineProcessing::isOptionWithParameter¶
All overloads of CommandlineProcessing::isOptionWithParameter
Search 'argv' for 'optionPrefixOption value' (int).
Synopsis¶
Declared in <commandlineProcessing/commandline_processing.h>
[[visibility("default")]]
bool
isOptionWithParameter(
std::vector<std::string>& argv,
std::string optionPrefix,
std::string Option,
int& 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