You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/swagger-codegen/src/main/java/io/swagger/codegen/Codegen.java
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
packageio.swagger.codegen;
2
2
3
+
importconfig.Config;
4
+
importconfig.ConfigParser;
3
5
importio.swagger.models.Swagger;
4
6
importio.swagger.parser.SwaggerParser;
5
7
importorg.apache.commons.cli.BasicParser;
@@ -9,6 +11,7 @@
9
11
importorg.apache.commons.cli.Options;
10
12
11
13
importjava.util.ArrayList;
14
+
importjava.util.Arrays;
12
15
importjava.util.HashMap;
13
16
importjava.util.Iterator;
14
17
importjava.util.List;
@@ -41,6 +44,7 @@ public static void main(String[] args) {
41
44
options.addOption("t", "template-dir", true, "folder containing the template files");
42
45
options.addOption("d", "debug-info", false, "prints additional info for debugging");
43
46
options.addOption("a", "auth", true, "adds authorization headers when fetching the swagger definitions remotely. Pass in a URL-encoded string of name:header with a comma separating multiple values");
47
+
options.addOption("c", "config", true, "location of the configuration file");
0 commit comments