Permalink
Browse files

[api] Sketch out arguments API

  • Loading branch information...
1 parent 59cc1dd commit f3f5e98e6a9f3f2301dd607a0a60011a6b2c557f @mmalecki committed Mar 30, 2013
Showing with 12 additions and 0 deletions.
  1. +12 −0 include/saneopt.h
View
@@ -29,4 +29,16 @@ void saneopt_alias(saneopt_t* opt, char* option, char* alias);
*/
char* saneopt_get(saneopt_t* opt, char* option);
+/*
+ * Get command line arguments, that is: any arguments not being an argument
+ * value and all arguments after "--".
+ *
+ * For example, parsing:
+ *
+ * ./app --option value foo bar -- --not-option baz
+ *
+ * Will result in this function returning ["foo", "bar", "--not-option", "baz"].
+ */
+char** saneopt_arguments(saneopt_t* opt);
+
#endif

0 comments on commit f3f5e98

Please sign in to comment.