Function rcutils_cli_option_exist

Function Documentation

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:
  • 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:

true if the option exists, or

Returns:

false otherwise.