Skip to content

Commit 4cc1db2

Browse files
committed
Align the input and output params with kiota
1 parent cd45ea1 commit 4cc1db2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Microsoft.OpenApi.Hidi/Program.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,16 @@ static async Task<int> Main(string[] args)
2121
};
2222
validateCommand.Handler = CommandHandler.Create<string>(OpenApiService.ValidateOpenApiDocument);
2323

24+
var descriptionOption = new Option("--openapi", "Input OpenAPI description file path or URL", typeof(string));
25+
descriptionOption.AddAlias("-d");
26+
27+
var outputOption = new Option("--output", "The output directory path for the generated file.", typeof(FileInfo), () => "./output", arity: ArgumentArity.ZeroOrOne);
28+
outputOption.AddAlias("o");
29+
2430
var transformCommand = new Command("transform")
2531
{
26-
new Option("--input", "Input OpenAPI description file path or URL", typeof(string) ),
27-
new Option("--output","Output OpenAPI description file", typeof(FileInfo), arity: ArgumentArity.ZeroOrOne),
32+
descriptionOption,
33+
outputOption,
2834
new Option("--version", "OpenAPI specification version", typeof(OpenApiSpecVersion)),
2935
new Option("--format", "File format",typeof(OpenApiFormat) ),
3036
new Option("--inline", "Inline $ref instances", typeof(bool) ),

0 commit comments

Comments
 (0)