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:
parent
c49eaca664
commit
5fff8825d9
1 changed files with 3 additions and 2 deletions
|
@ -41,9 +41,10 @@ void Util::Config::parseArgs(int argc, char ** argv){
|
||||||
{"port",1,0,'p'},
|
{"port",1,0,'p'},
|
||||||
{"interface",1,0,'i'},
|
{"interface",1,0,'i'},
|
||||||
{"username",1,0,'u'},
|
{"username",1,0,'u'},
|
||||||
{"no-daemon",0,0,'n'},
|
{"nodaemon",0,0,'n'},
|
||||||
{"daemon",0,0,'d'},
|
{"daemon",0,0,'d'},
|
||||||
{"version",0,0,'v'}
|
{"version",0,0,'v'},
|
||||||
|
0
|
||||||
};
|
};
|
||||||
while ((opt = getopt_long(argc, argv, optString, longOpts, 0)) != -1){
|
while ((opt = getopt_long(argc, argv, optString, longOpts, 0)) != -1){
|
||||||
switch (opt){
|
switch (opt){
|
||||||
|
|
Loading…
Add table
Reference in a new issue