mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
Merge pull request #5532 from briankendall/torrent_command_line_arguments
Command line arguments for specifying options when adding torrents
This commit is contained in:
commit
4ea9a2f07e
12 changed files with 375 additions and 90 deletions
|
@ -182,7 +182,7 @@ int main(int argc, char *argv[])
|
|||
qDebug("qBittorrent is already running for this user.");
|
||||
|
||||
QThread::msleep(300);
|
||||
app->sendParams(params.torrents);
|
||||
app->sendParams(params.paramList());
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
@ -247,7 +247,7 @@ int main(int argc, char *argv[])
|
|||
signal(SIGSEGV, sigAbnormalHandler);
|
||||
#endif
|
||||
|
||||
return app->exec(params.torrents);
|
||||
return app->exec(params.paramList());
|
||||
}
|
||||
catch (CommandLineParameterError &er) {
|
||||
displayBadArgMessage(er.messageForUser());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue