aboutsummaryrefslogtreecommitdiffstats
path: root/src/argparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/argparser.h')
-rw-r--r--src/argparser.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/argparser.h b/src/argparser.h
index 668e340..0027c28 100644
--- a/src/argparser.h
+++ b/src/argparser.h
@@ -74,6 +74,14 @@ typedef struct
*/
void (*triggerv)(char*, char*, char*);
+ /**
+ * Should return true if the next argument can used for the argument without being sticky
+ *
+ * @param argument The next argument
+ * @return Whether the argument can be used without being sticky
+ */
+ long (*stickless)(char*);
+
} args_Option;
@@ -310,6 +318,14 @@ extern char* args_options_get_standard(long index);
void args_optmap_trigger(char* name, char* value);
/**
+ * Evaluate if an argument can be used without being sticky for an optionally argument option
+ *
+ * @param name The option's alternative name
+ * @param argument The argument
+ */
+long args_optmap_stickless(char* name, char* argument);
+
+/**
* Gets the help text for a option with a specific index
*
* @param index The option's index