Skip to content

Commit 8a60acf

Browse files
committed
Add --filterByTag command option
1 parent 77063ae commit 8a60acf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Microsoft.OpenApi.Tool/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ static async Task<int> Main(string[] args)
2626
new Option("--format", "File format",typeof(OpenApiFormat) ),
2727
new Option("--inline", "Inline $ref instances", typeof(bool) ),
2828
new Option("--resolveExternal","Resolve external $refs", typeof(bool)),
29-
new Option("--filterByOperationId", "Filters by OperationId provided", typeof(string))
29+
new Option("--filterByOperationId", "Filters OpenApiDocument by OperationId provided", typeof(string)),
30+
new Option("--filterByTag", "Filters OpenApiDocument by Tag(s) provided", typeof(string))
3031
};
31-
transformCommand.Handler = CommandHandler.Create<string, FileInfo, OpenApiSpecVersion, OpenApiFormat, string, bool, bool>(
32+
transformCommand.Handler = CommandHandler.Create<string, FileInfo, OpenApiSpecVersion, OpenApiFormat, string, string, bool, bool>(
3233
OpenApiService.ProcessOpenApiDocument);
3334

3435
rootCommand.Add(transformCommand);

0 commit comments

Comments
 (0)