From c7892209732f0642ad13ba16624d165b054c7b58 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Fri, 24 Jan 2014 11:35:10 -0500 Subject: [PATCH] Handle -user and -pass as -username and -password respectively if the latter are not present. --- DepotDownloader/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DepotDownloader/Program.cs b/DepotDownloader/Program.cs index b4818d46..326f0754 100644 --- a/DepotDownloader/Program.cs +++ b/DepotDownloader/Program.cs @@ -85,8 +85,8 @@ namespace DepotDownloader } } - string username = GetParameter(args, "-username"); - string password = GetParameter(args, "-password"); + string username = GetParameter(args, "-username") ?? GetParameter(args, "-user"); + string password = GetParameter(args, "-password") ?? GetParameter(args, "-pass"); ContentDownloader.Config.InstallDirectory = GetParameter(args, "-dir"); ContentDownloader.Config.DownloadAllPlatforms = HasParameter(args, "-all-platforms"); ContentDownloader.Config.VerifyAll = HasParameter(args, "-verify-all") || HasParameter(args, "-verify_all") || HasParameter(args, "-validate");