A new parser is developed because of we have a lot of standalone applicaions.
When bad argument is passed to app, parser will generate a help, it means
all app will have same help output. For now is only daemon moved to a new
parser to see how to use it.
Nikola Pajkovsky (3):
xfunc.c: add new funtion xcalloc
new args parser
Daemon.cpp: remove getopt and use parse_opts instead
inc/xfuncs.h | 1 +
lib/utils/Makefile.am | 3 +-
lib/utils/parse_options.c | 130 +++++++++++++++++++++++++++++++++++++++++++++
lib/utils/parse_options.h | 37 +++++++++++++
lib/utils/xfuncs.c | 8 +++
src/daemon/Daemon.cpp | 65 ++++++++++++-----------
6 files changed, 212 insertions(+), 32 deletions(-)
create mode 100644 lib/utils/parse_options.c
create mode 100644 lib/utils/parse_options.h