@@ -24,22 +24,6 @@ public CreateCommand()
24
24
CommandOption apiVersion = this . Option ( "--apiVersion <apiVersion>" , "API version" , CommandOptionType . SingleValue ) ;
25
25
CommandOption apiVersionSetId = this . Option ( "--apiVersionSetId <apiVersionSetId>" , "API version set id" , CommandOptionType . SingleValue ) ;
26
26
CommandOption productIds = this . Option ( "--productIds <productIds>" , "Product ids to associate the API with" , CommandOptionType . MultipleValue ) ;
27
-
28
- // convert command options to CLIArguments class
29
- CLICreatorArguments cliArguments = new CLICreatorArguments ( )
30
- {
31
- openAPISpecFile = openAPISpecFile . Value ( ) ,
32
- openAPISpecURL = openAPISpecURL . Value ( ) ,
33
- outputLocation = outputLocation . Value ( ) ,
34
- xmlPolicyFile = xmlPolicyFile . Value ( ) ,
35
- xmlPolicyURL = xmlPolicyURL . Value ( ) ,
36
- linked = linked . HasValue ( ) ,
37
- path = path . Value ( ) ,
38
- apiRevision = apiRevision . Value ( ) ,
39
- apiVersion = apiVersion . Value ( ) ,
40
- apiVersionSetId = apiVersionSetId . Value ( ) ,
41
- productIds = productIds . Values
42
- } ;
43
27
44
28
this . HelpOption ( ) ;
45
29
@@ -53,6 +37,22 @@ public CreateCommand()
53
37
APITemplateCreator apiTemplateCreator = new APITemplateCreator ( ) ;
54
38
TagTemplateCreator tagTemplateCreator = new TagTemplateCreator ( ) ;
55
39
40
+ // convert command options to CLIArguments class
41
+ CLICreatorArguments cliArguments = new CLICreatorArguments ( )
42
+ {
43
+ openAPISpecFile = openAPISpecFile . Value ( ) ,
44
+ openAPISpecURL = openAPISpecURL . Value ( ) ,
45
+ outputLocation = outputLocation . Value ( ) ,
46
+ xmlPolicyFile = xmlPolicyFile . Value ( ) ,
47
+ xmlPolicyURL = xmlPolicyURL . Value ( ) ,
48
+ linked = linked . HasValue ( ) ,
49
+ path = path . Value ( ) ,
50
+ apiRevision = apiRevision . Value ( ) ,
51
+ apiVersion = apiVersion . Value ( ) ,
52
+ apiVersionSetId = apiVersionSetId . Value ( ) ,
53
+ productIds = productIds . Values
54
+ } ;
55
+
56
56
// create OpenApiDocument
57
57
OpenApiDocument doc = new OpenApiDocument ( ) ;
58
58
if ( cliArguments . openAPISpecFile != null )
0 commit comments