@@ -31,7 +31,7 @@ public static Task<int> Main(string[] args)
3131 new Option < ulong [ ] > ( "--manifest" , "Manifest id of content to download (requires --depot, default: current for branch)" ) ,
3232
3333 new Option < ulong ? > ( "--ugc" , "The UGC ID to download" ) ,
34- new Option < ulong ? > ( "--pubfile" , "The PublishedFileId to download (will automatically resolve to UGC id)" ) ,
34+ new Option < ulong [ ] > ( "--pubfile" , "The PublishedFileId to download (will automatically resolve to UGC id)" ) ,
3535
3636 new Option < string ? > ( new [ ] { "--branch" , "--beta" } , "Download from specified branch if available" ) ,
3737 new Option < string ? > ( new [ ] { "--branch-password" , "--betapassword" } , "Branch password if applicable" ) ,
@@ -92,14 +92,14 @@ protected override void AddUsage(ICommand command)
9292
9393 public class InputModel
9494 {
95- 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 )
95+ 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 )
9696 {
9797 Debug = debug ;
9898 AppId = app ;
9999 Depots = depot ;
100100 Manifests = manifest ;
101101 UgcId = ugc ;
102- Pubfile = pubfile ;
102+ PublishedFileIds = pubfile ;
103103 Branch = EnsureNonEmpty ( branch ) ;
104104 BranchPassword = EnsureNonEmpty ( branchPassword ) ;
105105 OperatingSystems = os ;
@@ -133,7 +133,7 @@ public InputModel(bool debug, uint app, uint[] depot, ulong[] manifest, ulong? u
133133 public ulong [ ] Manifests { get ; }
134134
135135 public ulong ? UgcId { get ; }
136- public ulong ? Pubfile { get ; }
136+ public ulong [ ] PublishedFileIds { get ; }
137137
138138 public string ? Branch { get ; }
139139 public string ? BranchPassword { get ; }
@@ -230,9 +230,9 @@ public static async Task<int> DownloadAsync(InputModel input)
230230 {
231231 try
232232 {
233- if ( input . Pubfile != null )
233+ if ( input . PublishedFileIds . Any ( ) )
234234 {
235- await ContentDownloader . DownloadPubfileAsync ( input . AppId , input . Pubfile . Value ) . ConfigureAwait ( false ) ;
235+ await ContentDownloader . DownloadPubfileAsync ( input . AppId , input . PublishedFileIds ) . ConfigureAwait ( false ) ;
236236 }
237237 else if ( input . UgcId != null )
238238 {
0 commit comments