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
66afa76397
commit
ad530a76ea
2 changed files with 6 additions and 4 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){
|
||||||
|
|
|
@ -337,9 +337,10 @@ int main(int argc, char ** argv){
|
||||||
{"interface",1,0,'i'},
|
{"interface",1,0,'i'},
|
||||||
{"account",1,0,'a'},
|
{"account",1,0,'a'},
|
||||||
{"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