@@ -29,7 +29,7 @@ public static Task<int> Main(string[] args)
2929 new Option < ulong [ ] > ( "--manifest" , "Manifest id of content to download (requires --depot, default: current for branch)" ) ,
3030
3131 new Option < ulong ? > ( "--ugc" , "The UGC ID to download" ) ,
32- new Option < ulong ? > ( "--pubfile" , "The PublishedFileId to download (will automatically resolve to UGC id)" ) ,
32+ new Option < ulong [ ] > ( "--pubfile" , "The PublishedFileId to download (will automatically resolve to UGC id)" ) ,
3333
3434 new Option < string ? > ( new [ ] { "--branch" , "--beta" } , "Download from specified branch if available" ) ,
3535 new Option < string ? > ( new [ ] { "--branch-password" , "--betapassword" } , "Branch password if applicable" ) ,
@@ -90,14 +90,14 @@ protected override void AddUsage(ICommand command)
9090
9191 public class InputModel
9292 {
93- public InputModel ( bool debug , uint app , uint [ ] depot , ulong [ ] manifest , ulong ? ugc , ulong ? pubfile , string ? branch , string ? branchPassword , string [ ] os , string [ ] arch , string [ ] language , bool lowViolence , string ? username , string ? password , bool rememberPassword , string directory , FileInfo ? fileList , bool validate , bool manifestOnly , int ? cellId , int maxServers , int maxDownloads , uint ? loginId )
93+ public InputModel ( bool debug , uint app , uint [ ] depot , ulong [ ] manifest , ulong ? ugc , ulong [ ] pubfile , string ? branch , string ? branchPassword , string [ ] os , string [ ] arch , string [ ] language , bool lowViolence , string ? username , string ? password , bool rememberPassword , DirectoryInfo ? directory , FileInfo ? fileList , bool validate , bool manifestOnly , int ? cellId , int maxServers , int maxDownloads , uint ? loginId )
9494 {
9595 Debug = debug ;
9696 AppId = app ;
9797 Depots = depot ;
9898 Manifests = manifest ;
9999 UgcId = ugc ;
100- Pubfile = pubfile ;
100+ PublishedFileIds = pubfile ;
101101 Branch = EnsureNonEmpty ( branch ) ;
102102 BranchPassword = EnsureNonEmpty ( branchPassword ) ;
103103 OperatingSystems = os ;
@@ -131,7 +131,7 @@ public InputModel(bool debug, uint app, uint[] depot, ulong[] manifest, ulong? u
131131 public ulong [ ] Manifests { get ; }
132132
133133 public ulong ? UgcId { get ; }
134- public ulong ? Pubfile { get ; }
134+ public ulong [ ] PublishedFileIds { get ; }
135135
136136 public string ? Branch { get ; }
137137 public string ? BranchPassword { get ; }
@@ -223,9 +223,9 @@ public static async Task<int> DownloadAsync(InputModel input)
223223 {
224224 try
225225 {
226- if ( input . Pubfile != null )
226+ if ( input . PublishedFileIds . Any ( ) )
227227 {
228- await ContentDownloader . DownloadPubfileAsync ( input . AppId , input . Pubfile . Value ) . ConfigureAwait ( false ) ;
228+ await ContentDownloader . DownloadPubfileAsync ( input . AppId , input . PublishedFileIds ) . ConfigureAwait ( false ) ;
229229 }
230230 else if ( input . UgcId != null )
231231 {
0 commit comments