aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-08-26 13:27:43 +0200
committerMattias Andrée <maandree@operamail.com>2013-08-26 13:27:43 +0200
commit8ec4a104daa06ab19090536104a9fae0ea9f8423 (patch)
tree3b0e738f6f26702baa80ae37ef591d1eac82ece8
parentm (diff)
downloadargparser-8ec4a104daa06ab19090536104a9fae0ea9f8423.tar.gz
argparser-8ec4a104daa06ab19090536104a9fae0ea9f8423.tar.bz2
argparser-8ec4a104daa06ab19090536104a9fae0ea9f8423.tar.xz
c fix
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/argparser.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/argparser.h b/src/argparser.h
index 0027c28..7cc82b2 100644
--- a/src/argparser.h
+++ b/src/argparser.h
@@ -236,6 +236,18 @@ extern args_Option args_new_argumentless(void (*trigger)(char*, char*), int stan
extern args_Option args_new_argumented(void (*trigger)(char*, char*, char*), char* argument, int standard, char* alternatives, ...);
/**
+ * Creates, but does not add, a option that optionally takes one argument per use
+ *
+ * @param stickless Should return true if the (feed) next argument can used for the argument without being sticky
+ * @param trigger Function to invoke when the option is used, with the used option, the standard option and the used value
+ * @param argument The new of the argument
+ * @param standard The index of the standard alternative name
+ * @param alternatives... The alternative names, end with `null`
+ * @return The created option
+ */
+extern args_Option args_new_optargumented(long (*stickless)(char*), void (*trigger)(char*, char*, char*), char* argument, int standard, char* alternatives, ...);
+
+/**
* Creates, but does not add, a option that takes all following arguments
*
* @param trigger Function to invoked when the option is used, with the used option and the standard option