#include <stdbool.h>
#include "rcutils/visibility_control.h"
Go to the source code of this file.
|
bool | rcutils_cli_option_exist (char **begin, char **end, const char *option) |
| Return true if the option is defined in the command line arguments or false otherwise. More...
|
|
char * | rcutils_cli_get_option (char **begin, char **end, const char *option) |
| Return the value for a specific option of the command line arguments. More...
|
|
◆ rcutils_cli_option_exist()
bool rcutils_cli_option_exist |
( |
char ** |
begin, |
|
|
char ** |
end, |
|
|
const char * |
option |
|
) |
| |
Return true
if the option is defined in the command line arguments or false
otherwise.
- Parameters
-
[in] | begin | first element to check in the array |
[in] | end | last element to check in the array |
[in] | option | string to find in the array of arguments |
- Returns
- if the option exists returns true, otherwise returns false.
◆ rcutils_cli_get_option()
char* rcutils_cli_get_option |
( |
char ** |
begin, |
|
|
char ** |
end, |
|
|
const char * |
option |
|
) |
| |
Return the value for a specific option of the command line arguments.
- Parameters
-
[in] | begin | first element to check in the array |
[in] | end | last element to check in the array |
[in] | option | string to find in the array of arguments |
- Returns
- the value for a specific option of the command line arguments or
NULL
if the option doesn't exist