| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Made sure we only include needed include files and checked that
the copyright headers are equal and correct
|
|
|
|
|
|
| |
Sending the argument incrementer as reference instead of as value. This
way eurephia_getopt(...) can directly increase the incrementer on arguments with
extra options.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
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.
|