summaryrefslogtreecommitdiffstats
path: root/eurephiadm/argparser.c
Commit message (Collapse)AuthorAgeFilesLines
* Updated copyright datesDavid Sommerseth2012-10-081-1/+1
| | | | Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
* Updated Copyright dates to include 2010David Sommerseth2010-07-301-1/+1
|
* Added doxygen comments for the main eurephiadm partsDavid Sommerseth2009-09-041-6/+37
|
* BUGFIX: eurephiadm argument parser increased argument pointer too muchDavid Sommerseth2009-03-291-1/+1
|
* Made the licence explicit GPLv2 onlyDavid Sommerseth2009-03-261-1/+1
|
* Cleaned up the code a little bitDavid Sommerseth2009-03-261-1/+2
| | | | | Made sure we only include needed include files and checked that the copyright headers are equal and correct
* More improvements to eurephia_getopt(...)David Sommerseth2008-12-061-4/+5
| | | | | | Sending the argument incrementer as reference instead of as value. This way eurephia_getopt(...) can directly increase the incrementer on arguments with extra options.
* BUGFIX: Do not try to parse arguments which are NULLDavid Sommerseth2008-12-061-0/+4
|
* Removed debug from eurephia_arraycp(...)David Sommerseth2008-12-061-1/+0
|
* Added new function for copying char ** (arrays)David Sommerseth2008-12-061-0/+19
|
* Enhanced the argument parser to handle mulitple options to arguments betterDavid Sommerseth2008-12-041-7/+10
| | | | | | | | The char *optarg is removed and replaced with char *optargs[MAX_ARGUMENTS] This will contain all extra options given to an argument. In addtions, MODULE must be defined with a string, which will be used when printing argument parsing errors
* Wrote a replacement getopt for eurephiadmDavid Sommerseth2008-12-041-0/+48
This is because default getopt(...) is not flexible enough for eurephiadm. Example: eurephiadm -l test.log config -s var1 "value 1" eurephiadm config -s var2 value2 By using getopt in the eurephiadm.c, the -s argument will be parsed there as well, and it is no good solution how to just send arguments after the 'command' further to another argument parser. The new implementation is also not as feature rich as GNU getopt, but it is feature rich enough for the current needs.