Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[api] Sketch out arguments API

  • Loading branch information...
commit f3f5e98e6a9f3f2301dd607a0a60011a6b2c557f 1 parent 59cc1dd
@mmalecki authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 include/saneopt.h
View
12 include/saneopt.h
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.