main: don't warn config-file as 'unknown'

This commit is contained in:
Peter Cai 2017-08-23 11:16:41 +08:00
parent 1f2f0d96fd
commit 057f81007d
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F

View File

@ -2946,6 +2946,10 @@ void process_arg(int argc, char *argv[], bool read_config)
myexit(-1);
}
}
else if(strcmp(long_options[option_index].name,"config-file")==0)
{
mylog(log_info,"configuration loaded from %s\n",optarg);
}
else
{
mylog(log_warn,"ignored unknown long option ,option_index:%d code:<%x>\n",option_index, optopt);