@@ -54,8 +54,6 @@ private static void Main(string[] args)
5454
5555 await SendReport ( report , opt . CommitUUID , opt . Token , opt . Partial ) . ConfigureAwait ( false ) ;
5656 }
57-
58- SendReport ( report , opt . CommitUUID , opt . Token , opt . Partial ) ;
5957 } ) ;
6058 }
6159
@@ -174,21 +172,25 @@ private static async Task<HttpResponseMessage> MakeRequest(string content, strin
174172 }
175173 }
176174
175+
177176 public class Options
178177 {
179178 [ Option ( 'p' , "partial" , Required = false , HelpText = "Send report as a partial report" , Default = false ) ]
180179 public bool Partial { get ; set ; }
181180
181+ [ Option ( 'f' , "final" , Required = false , HelpText = "Send final coverage report request" , Default = false ) ]
182+ public bool Final { get ; set ; }
183+
182184 [ Option ( 'c' , "commit" , Required = true , HelpText = "Specify the commit UUID" ) ]
183185 public string CommitUUID { get ; set ; }
184186
185187 [ Option ( 't' , "token" , Required = true , HelpText = "Specify the project token" ) ]
186188 public string Token { get ; set ; }
187189
188- [ Option ( 'r' , "report" , Required = true , HelpText = "Path to the coverage report" ) ]
190+ [ Option ( 'r' , "report" , Required = false , HelpText = "Path to the coverage report" ) ]
189191 public string ReportFile { get ; set ; }
190192
191- [ Option ( 'e' , "engine" , Required = true , HelpText = "Engine Report Type (dotcover, opencover)." ) ]
193+ [ Option ( 'e' , "engine" , Required = false , HelpText = "Engine Report Type (dotcover, opencover)." ) ]
192194 public string ReportType { get ; set ; }
193195 }
194196 }
0 commit comments