You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatestaticstringBuildApiErrorMessage(Requestr)=>$"Some error was generated by the proxy. {(ProxyUtils.IsGraphRequest(r)?ProxyUtils.IsSdkRequest(r)?"":String.Join(' ',MessageUtils.BuildUseSdkForErrorsMessage(r)):"")}";
227
222
223
+
publicoverrideOption[]GetOptions()
224
+
{
225
+
var_allowedErrors=newOption<IEnumerable<int>>(_allowedErrorsOptionName,"List of errors that Dev Proxy may produce")
_filePath=newOption<string?>("--summary-file-path","Path to the file where the summary should be saved. If not specified, the summary will be printed to the console. Path can be absolute or relative to the current working directory.");
38
-
_filePath.ArgumentHelpName="summary-file-path";
39
-
_filePath.AddValidator(input =>
37
+
varfilePath=newOption<string?>(_filePathOptionName,"Path to the file where the summary should be saved. If not specified, the summary will be printed to the console. Path can be absolute or relative to the current working directory.")
38
+
{
39
+
ArgumentHelpName="summary-file-path"
40
+
};
41
+
filePath.AddValidator(input =>
40
42
{
41
43
varoutputFilePath=input.Tokens.First().Value;
42
44
if(string.IsNullOrEmpty(outputFilePath))
@@ -58,15 +60,19 @@ public ExecutionSummaryPlugin()
58
60
}
59
61
});
60
62
61
-
_groupBy=newOption<SummaryGroupBy?>("--summary-group-by","Specifies how the information should be grouped in the summary. Available options: `url` (default), `messageType`.");
62
-
_groupBy.ArgumentHelpName="summary-group-by";
63
-
_groupBy.AddValidator(input =>
63
+
vargroupBy=newOption<SummaryGroupBy?>(_groupByOptionName,"Specifies how the information should be grouped in the summary. Available options: `url` (default), `messageType`.")
input.ErrorMessage=$"{input.Tokens.First().Value} is not a valid option to group by. Allowed values are: {string.Join(", ",Enum.GetNames(typeof(SummaryGroupBy)))}";
_filePath=newOption<string?>("--minimal-permissions-summary-file-path","Path to the file where the permissions summary should be saved. If not specified, the summary will be printed to the console. Path can be absolute or relative to the current working directory.")
49
+
varfilePath=newOption<string?>(_filePathOptionName,"Path to the file where the permissions summary should be saved. If not specified, the summary will be printed to the console. Path can be absolute or relative to the current working directory.")
0 commit comments