Handle -user and -pass as -username and -password respectively if the latter are not present.

pull/8/head
Nicholas Hastings 12 years ago
parent b656218e8a
commit c789220973

@ -85,8 +85,8 @@ namespace DepotDownloader
}
}
string username = GetParameter<string>(args, "-username");
string password = GetParameter<string>(args, "-password");
string username = GetParameter<string>(args, "-username") ?? GetParameter<string>(args, "-user");
string password = GetParameter<string>(args, "-password") ?? GetParameter<string>(args, "-pass");
ContentDownloader.Config.InstallDirectory = GetParameter<string>(args, "-dir");
ContentDownloader.Config.DownloadAllPlatforms = HasParameter(args, "-all-platforms");
ContentDownloader.Config.VerifyAll = HasParameter(args, "-verify-all") || HasParameter(args, "-verify_all") || HasParameter(args, "-validate");

Loading…
Cancel
Save