mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-20 01:46:17 +00:00
Disallow using -remember-password and -qr without -username
This commit is contained in:
1 parent
deac83600c
commit
d087678628
1 file changed
+15
@@ -65,6 +65,21 @@ namespace DepotDownloader
|
||||
ContentDownloader.Config.RememberPassword = HasParameter(args, "-remember-password");
|
||||
ContentDownloader.Config.UseQrCode = HasParameter(args, "-qr");
|
||||
|
||||
if (username == null)
|
||||
{
|
||||
if (ContentDownloader.Config.RememberPassword)
|
||||
{
|
||||
Console.WriteLine("Error: -remember-password can not be used without -username.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (ContentDownloader.Config.UseQrCode)
|
||||
{
|
||||
Console.WriteLine("Error: -qr can not be used without -username.");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
ContentDownloader.Config.DownloadManifestOnly = HasParameter(args, "-manifest-only");
|
||||
|
||||
var cellId = GetParameter(args, "-cellid", -1);
|
||||
|
||||
Reference in new issue
Block a user