mirror of https://github.com/vitalif/phantomjs
Do not crash when the command line option is unknown.
http://code.google.com/p/phantomjs/issues/detail?id=1241.2
parent
75bbbebb89
commit
944afb314e
|
@ -118,8 +118,8 @@ Phantom::Phantom(QObject *parent)
|
|||
continue;
|
||||
}
|
||||
if (arg.startsWith("--")) {
|
||||
qFatal("Unknown option '%s'", qPrintable(arg));
|
||||
exit(-1);
|
||||
std::cerr << "Unknown option '" << qPrintable(arg) << "'" << std::endl;
|
||||
m_terminated = true;
|
||||
return;
|
||||
} else {
|
||||
m_scriptFile = arg;
|
||||
|
|
Loading…
Reference in New Issue