cag_option_get_index

(since v1.0.0)
Gets the current index of the context.

Description

int cag_option_get_index(const cag_option_context *context);

This function gets the index within the argv arguments of the context. The context always points to the next item which it will inspect. This is particularly useful to inspect the original argument array, or to get non-option arguments after option fetching has finished.

Parameters

Return Value

Returns the current index of the context.

Changelog

Version Description
v1.0.3 Added shared library exports.
v1.0.1 Added support for C++ projects.
v1.0.0 The function is introduced.