|
htils 1
A small set of utilities for C programming.
|
The cli state thats used during parsing. More...
#include <cli.h>
Data Fields | |
| i64 | argc |
| cstr ** | argv |
| string * | cli_name |
| string * | cli_desc |
| htils_cli_option_t ** | options |
| arena_t * | arena |
| void(* | usage )(struct cli *cli, cstr **argv) |
| i64 | optidx |
| i16 | next_char |
| cstr * | optarg |
| i16 | optopt |
The cli state thats used during parsing.
| argc | The number of arguments |
| argv | The arguments |
| cli_name | The name of the cli |
| cli_desc | The description of the cli |
| options | The options of the cli |
| arena | The arena to use for allocating memory in the cli parser. |
| usage | The usage function to use when printing the usage of the cli. |
| optidx | The index of the current option being parsed. |
| next_char | The next character to parse. |
| optarg | The argument of the current option being parsed. |
| optopt | The option of the current option being parsed. |
| arena_t* cli::arena |
| i64 cli::argc |
| cstr** cli::argv |
| string* cli::cli_desc |
| string* cli::cli_name |
| i16 cli::next_char |
| cstr* cli::optarg |
| i64 cli::optidx |
| htils_cli_option_t** cli::options |
| i16 cli::optopt |