Fixed invalid commandline option segfaults, renamed no-daemon to the proper nodaemon as mentioned in all documentation and help messages.

This commit is contained in:
Thulinma 2012-06-08 18:19:43 +02:00
parent c49eaca664
commit 5fff8825d9

View file

@ -41,9 +41,10 @@ void Util::Config::parseArgs(int argc, char ** argv){
{"port",1,0,'p'},
{"interface",1,0,'i'},
{"username",1,0,'u'},
{"no-daemon",0,0,'n'},
{"nodaemon",0,0,'n'},
{"daemon",0,0,'d'},
{"version",0,0,'v'}
{"version",0,0,'v'},
0
};
while ((opt = getopt_long(argc, argv, optString, longOpts, 0)) != -1){
switch (opt){