Differences From
Artifact [6a6012e12f]:
84 84
85 85 return 0;
86 86 }
87 87
88 88 ## struct kcli_opt
89 89 a `kcli_opt` is a representation of a command-line flag and its function. each option must have a unique `id` and/or a unique `name`.
90 90
91 - * `char id` - the short single-character form of the flag (or NUL for no short form)
91 + * `rune id` - the short single-character form of the flag as a UTF-8 codepoint (or initial NUL for no short form)
92 92 * `const char* name` - the long string form of the flag (or NULL for no long form)
93 93 * `kcli_opt_kind kind` - enum that describes how the flag will function
94 94 * `void* val` - a pointer to an appropriate type to store the return value in.
95 95 * `const char* desc` - a description of the flag's purpose and function (or NULL for no description)
96 96
97 97 ## enum kcli_opt_kind
98 98