diff --git a/DepotDownloader/Program.cs b/DepotDownloader/Program.cs index eae9645b..c44acadd 100644 --- a/DepotDownloader/Program.cs +++ b/DepotDownloader/Program.cs @@ -97,6 +97,12 @@ namespace DepotDownloader bool forceDepot = HasParameter( args, "-force-depot" ); string os = GetParameter( args, "-os", null ); + if ( ContentDownloader.Config.DownloadAllPlatforms && !String.IsNullOrEmpty( os ) ) + { + Console.WriteLine( "Error: Cannot specify -os when -all-platforms is specified." ); + return; + } + ContentDownloader.Config.MaxServers = Math.Max( ContentDownloader.Config.MaxServers, ContentDownloader.Config.MaxDownloads ); if ( username != null && password == null && ( !ContentDownloader.Config.RememberPassword || !ConfigStore.TheConfig.LoginKeys.ContainsKey( username ) ) ) @@ -167,7 +173,7 @@ namespace DepotDownloader Console.WriteLine( "\t-password \t\t\t- the password of the account to login to for restricted content." ); Console.WriteLine( "\t-remember-password\t\t\t- if set, remember the password for subsequent logins of this user." ); Console.WriteLine( "\t-dir \t\t\t- the directory in which to place downloaded files." ); - Console.WriteLine( "\t-os \t\t\t- the operating system for which to download the game (windows, macos or linux, default: OS the programm is currently running on)" ); + Console.WriteLine( "\t-os \t\t\t- the operating system for which to download the game (windows, macos or linux, default: OS the program is currently running on)" ); Console.WriteLine( "\t-filelist \t\t- a list of files to download (from the manifest). Can optionally use regex to download only certain files." ); Console.WriteLine( "\t-all-platforms\t\t\t- downloads all platform-specific depots when -app is used." ); Console.WriteLine( "\t-manifest-only\t\t\t- downloads a human readable manifest for any depots that would be downloaded." ); diff --git a/README.md b/README.md index d8aa94af..a716058d 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Optional Parameters: -password - the password of the account to login to for restricted content. -remember-password - if set, remember the password for subsequent logins of this user. -dir - the directory in which to place downloaded files. - -os - the operating system for which to download the game (windows, macos or linux, default: OS the programm is currently running on) + -os - the operating system for which to download the game (windows, macos or linux, default: OS the program is currently running on) -filelist - a list of files to download (from the manifest). Can optionally use regex to download only certain files. -all-platforms - downloads all platform-specific depots when -app is used.