From 7b7240d50dd5e418bc17beff48aa5681b398b980 Mon Sep 17 00:00:00 2001 From: gramanas Date: Fri, 14 Oct 2022 22:11:50 +0300 Subject: More changes --- src/foodopts.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/foodopts.h') diff --git a/src/foodopts.h b/src/foodopts.h index c8b0686..06349a1 100644 --- a/src/foodopts.h +++ b/src/foodopts.h @@ -19,6 +19,7 @@ struct foodoption { /* Extra values */ const char *help; const char *arg; + const char *category; }; int @@ -27,6 +28,10 @@ get_foodopt(int argc, char *const argv[], const struct foodoption *longopts, int *longindex); +const char * +get_argument(const char opt, + const struct foodoption *longopts); + void foodopt_help(char * argv0, const struct foodoption *longopts); -- cgit v1.2.3