CommandlineProcessing::isOption¶
Search 'argv' for an option like optionPrefixOption.
Synopsis¶
Declared in <commandlineProcessing/commandline_processing.h>
[[visibility("default")]]
bool
isOption(
std::vector<std::string>& argv,
std::string optionPrefix,
std::string Option,
bool removeOption); Description¶
The argument 'option' adds () to the actual option, and allows the |(OR) operations.
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. |
| removeOption | Whether to remove the option from argv. |
Created with MrDocs