Skip to content

Commit

Permalink
[api] Sketch out arguments API
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Mar 30, 2013
1 parent 59cc1dd commit f3f5e98
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/saneopt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.