mirror of https://github.com/aria2/aria2
Log warn if unknown option is found in config file or -i file
parent
d6000024c0
commit
08bed3f77f
|
@ -52,6 +52,8 @@
|
|||
#include "error_code.h"
|
||||
#include "prefs.h"
|
||||
#include "UnknownOptionException.h"
|
||||
#include "LogFactory.h"
|
||||
#include "fmt.h"
|
||||
|
||||
namespace aria2 {
|
||||
|
||||
|
@ -237,6 +239,8 @@ void OptionParser::parse(Option& option, std::istream& is) const
|
|||
const OptionHandler* handler = find(pref);
|
||||
if(handler) {
|
||||
handler->parse(option, std::string(nv.second.first, nv.second.second));
|
||||
} else {
|
||||
A2_LOG_WARN(fmt("Unknown option: %s", line.c_str()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue