156 const char *info,
bool hasSubParams,
bool hasAnySubParams);
bool argxcParamExists(Argxc *argxc, const char *id)
Check if a parameter with the given ID exists.
Argxc * argxcCreate(const char *id, int argc, char *argv[])
Create a new Argxc instance with a specified ID and command-line arguments.
bool argxcGetSubParam(Argxc *argxc, const ArgxcParam *param, const char *id)
Retrieve a sub-parameter from a given parameter by ID.
int argxcGetArgc(Argxc *argxc)
Get the number of command-line arguments passed.
const char * argxcGetId(Argxc *argxc)
Get the identifier of the Argxc instance.
bool argxcCompareArgs(ArgxcOptions *options, size_t optionsCount, char **argv, size_t argvCount)
Compare if the given argv matches a list of ArgxcOptions.
void argxcFreeStringArray(char **array, size_t count)
Free a string array returned from Argxc (e.g., argv array).
int argxcFindParam(Argxc *argxc, const char *id)
Find the index of a parameter by ID.
void argxcAddOption(Argxc *argxc, ArgxcOptions option)
Add a new option to the Argxc instance.
ArgxcOptions argxcCreateOption(const char *id, const char *param, const char *sparam, const char *info, bool hasSubParams, bool hasAnySubParams)
Create a new option.
char ** argxcGetMainArgs(Argxc *argxc, size_t *count)
Get the raw command-line arguments passed to Argxc.
void argxcFreeParam(ArgxcParam *param)
Free resources associated with an ArgxcParam struct.
void argxcAddSubOption(ArgxcOptions *parent, ArgxcOptions subOption)
Add a sub-option to a parent option.
ArgxcParam argxcGetParam(Argxc *argxc, const char *id)
Retrieve a parameter by ID.
Argxc * argxcCreateDefault(void)
Create a new Argxc instance with default values (empty ID and no arguments).
void argxcDestroy(Argxc *argxc)
Destroy an Argxc instance and free all associated memory.
char * argxcCreateDocs(Argxc *argxc, ArgxcStyle style, const char *title, const char *mainInfo)
Generate documentation for the defined options.
void argxcFreeOption(ArgxcOptions *option)
Free resources associated with an ArgxcOptions struct.
void argxcFreeError(ArgxcError *error)
Free resources associated with an ArgxcError struct.
ArgxcOptions * argxcGetOptions(Argxc *argxc, size_t *count)
Get all top-level options defined for the Argxc instance.
ArgxcError argxcCreateError(const char *type, const char *error, const char *help, int code)
Create an ArgxcError object.