File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/Microsoft.OpenApi.Hidi Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,8 @@ static async Task<int> Main(string[] args)
14
14
{
15
15
var rootCommand = new RootCommand ( ) {
16
16
} ;
17
-
18
- var validateCommand = new Command ( "validate" )
19
- {
20
- new Option ( "--input" , "Input OpenAPI description file path or URL" , typeof ( string ) )
21
- } ;
22
- validateCommand . Handler = CommandHandler . Create < string > ( OpenApiService . ValidateOpenApiDocument ) ;
23
-
24
- // transform command options
17
+
18
+ // command option parameters and aliases
25
19
var descriptionOption = new Option ( "--openapi" , "Input OpenAPI description file path or URL" , typeof ( string ) ) ;
26
20
descriptionOption . AddAlias ( "-d" ) ;
27
21
@@ -49,6 +43,12 @@ static async Task<int> Main(string[] args)
49
43
var filterByCollectionOption = new Option ( "--filterByCollection" , "Filters OpenApiDocument by Postman collection provided" , typeof ( string ) ) ;
50
44
filterByCollectionOption . AddAlias ( "-c" ) ;
51
45
46
+ var validateCommand = new Command ( "validate" )
47
+ {
48
+ descriptionOption
49
+ } ;
50
+ validateCommand . Handler = CommandHandler . Create < string > ( OpenApiService . ValidateOpenApiDocument ) ;
51
+
52
52
var transformCommand = new Command ( "transform" )
53
53
{
54
54
descriptionOption ,
You can’t perform that action at this time.
0 commit comments