Function rcutils_cli_get_option

Function Documentation

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:
  • begin[in] first element to check in the array

  • end[in] last element to check in the array

  • option[in] string to find in the array of arguments

Returns:

the value for a specific option of the command line arguments, or

Returns:

NULL if the option doesn’t exist.