@@ -39,6 +39,9 @@ static async Task Main(string[] args)
39
39
var formatOption = new Option < OpenApiFormat ? > ( "--format" , "File format" ) ;
40
40
formatOption . AddAlias ( "-f" ) ;
41
41
42
+ var terseOutputOption = new Option < bool > ( "--terse-output" , "Produce terse json output" ) ;
43
+ terseOutputOption . AddAlias ( "-to" ) ;
44
+
42
45
var logLevelOption = new Option < LogLevel > ( "--loglevel" , ( ) => LogLevel . Information , "The log level to use when logging messages to the main output." ) ;
43
46
logLevelOption . AddAlias ( "-ll" ) ;
44
47
@@ -74,6 +77,7 @@ static async Task Main(string[] args)
74
77
cleanOutputOption ,
75
78
versionOption ,
76
79
formatOption ,
80
+ terseOutputOption ,
77
81
logLevelOption ,
78
82
filterByOperationIdsOption ,
79
83
filterByTagsOption ,
@@ -82,8 +86,8 @@ static async Task Main(string[] args)
82
86
inlineExternalOption
83
87
} ;
84
88
85
- transformCommand . SetHandler < string , string , string , FileInfo , bool , string ? , OpenApiFormat ? , LogLevel , bool , bool , string , string , string , CancellationToken > (
86
- OpenApiService . TransformOpenApiDocument , descriptionOption , csdlOption , csdlFilterOption , outputOption , cleanOutputOption , versionOption , formatOption , logLevelOption , inlineLocalOption , inlineExternalOption , filterByOperationIdsOption , filterByTagsOption , filterByCollectionOption ) ;
89
+ transformCommand . SetHandler < string , string , string , FileInfo , bool , string ? , OpenApiFormat ? , bool , LogLevel , bool , bool , string , string , string , CancellationToken > (
90
+ OpenApiService . TransformOpenApiDocument , descriptionOption , csdlOption , csdlFilterOption , outputOption , cleanOutputOption , versionOption , formatOption , terseOutputOption , logLevelOption , inlineLocalOption , inlineExternalOption , filterByOperationIdsOption , filterByTagsOption , filterByCollectionOption ) ;
87
91
88
92
rootCommand . Add ( transformCommand ) ;
89
93
rootCommand . Add ( validateCommand ) ;
0 commit comments