From 6547585e70e56e8dff8b3b6972c471dedc69c3f6 Mon Sep 17 00:00:00 2001 From: AUnicornWithNoLife <55228370+AUnicornWithNoLife@users.noreply.github.com> Date: Sat, 29 Jul 2023 13:28:55 +0100 Subject: [PATCH] update to match newest features --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 44da639..72828a5 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,10 @@ typedef struct uint32_t lv_len; char** lv_labels; - char** lv_values; + char** lv_values; + + uint32_t flags_len; + char** flags; } carg_parse_data; ``` @@ -27,7 +30,7 @@ Values is an array of all of the free standing arguments passed in LV is a dictionary, labels in lv_labels and values in lv_values, it contains any labeled arguments '-a b', if a value is not provided lv_value will point to NULL -values and lv_values both point to argv, and lv_labels points to argv + 1, as to ignore the dash('-') +values, lv_values and flags all point to argv, lv_labels points to argv + 1, as to ignore the dash ('-'), and flags does the same except + 2 as to ignore the double dash ('--') when done with the data, call `carg_parse_free(carg_parse_data* data)`