|
|
@ -114,7 +114,7 @@ struct QBtCommandLineParameters |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
int webUiPort; |
|
|
|
int webUiPort; |
|
|
|
QStringList torrents; |
|
|
|
QStringList torrents; |
|
|
|
QString uknownParameter; |
|
|
|
QString unknownParameter; |
|
|
|
|
|
|
|
|
|
|
|
QBtCommandLineParameters() |
|
|
|
QBtCommandLineParameters() |
|
|
|
: showHelp(false) |
|
|
|
: showHelp(false) |
|
|
@ -155,9 +155,9 @@ int main(int argc, char *argv[]) |
|
|
|
|
|
|
|
|
|
|
|
const QBtCommandLineParameters params = parseCommandLine(); |
|
|
|
const QBtCommandLineParameters params = parseCommandLine(); |
|
|
|
|
|
|
|
|
|
|
|
if (!params.uknownParameter.isEmpty()) { |
|
|
|
if (!params.unknownParameter.isEmpty()) { |
|
|
|
displayBadArgMessage(QObject::tr("%1 is an uknown command line parameter.", "--random-parameter is an uknown command line parameter.") |
|
|
|
displayBadArgMessage(QObject::tr("%1 is an unknown command line parameter.", "--random-parameter is an unknown command line parameter.") |
|
|
|
.arg(params.uknownParameter)); |
|
|
|
.arg(params.unknownParameter)); |
|
|
|
return EXIT_FAILURE; |
|
|
|
return EXIT_FAILURE; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -325,8 +325,8 @@ QBtCommandLineParameters parseCommandLine() |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
else { |
|
|
|
else { |
|
|
|
//Uknown argument
|
|
|
|
//Unknown argument
|
|
|
|
result.uknownParameter = arg; |
|
|
|
result.unknownParameter = arg; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|