mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-01 21:42:31 +01:00
Prevent the use of --output-file when downloading multiple files
This commit is contained in:
parent
b6d07f5343
commit
5c9488fc13
6
main.cpp
6
main.cpp
@ -336,6 +336,12 @@ int main(int argc, char *argv[])
|
||||
if (i->compare(0, GlobalConstants::PROTOCOL_PREFIX.length(), GlobalConstants::PROTOCOL_PREFIX) == 0)
|
||||
config.sFileIdString = *i;
|
||||
|
||||
if (!config.sOutputFilename.empty() && config.sFileIdString.find(',') != std::string::npos)
|
||||
{
|
||||
std::cerr << "Cannot specify an output file name when downloading multiple files." << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Override cover option
|
||||
if (bNoCover)
|
||||
config.bCover = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user