Commit e2b495d Stepan Kamenik
committed
1 parent b9403fb commit e2b495d Copy full SHA for e2b495d
File tree 2 files changed +7
-7
lines changed
src/main/java/one/edee/babylon
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,9 @@ public static Arguments parseArguments(String... args) {
75
75
arguments .setConfigFileName (args [1 ]);
76
76
arguments .setGoogleSheetId (args [2 ]);
77
77
if (args .length > 3 ){
78
- arguments .setCombineSheets ( Boolean . parseBoolean ( args [3 ]) );
78
+ arguments .setDeeplApiKey ( args [3 ]);
79
79
if (args .length > 4 ){
80
- arguments .setDeeplApiKey (args [4 ]);
81
-
80
+ arguments .setCombineSheets (Boolean .parseBoolean (args [4 ]));
82
81
}
83
82
}
84
83
return arguments ;
@@ -88,8 +87,8 @@ private static void printRequiredArguments() {
88
87
log .info ("1 - expected action (import, export)" );
89
88
log .info ("2 - path to translator-config.json file" );
90
89
log .info ("3 - ID of the google sheet (e.g. 1xhnBAOpy8-9KWhl8NP0ZIy6mhlgXKnKcLJwKcIeyjPc)" );
91
- log .info ("4 - arg to specify combineSheets mode " );
92
- log .info ("5 - arg to specify deepl api key " );
90
+ log .info ("4 - arg to specify deepl api key " );
91
+ log .info ("5 - arg to specify combineSheets mode " );
93
92
}
94
93
95
94
/**
Original file line number Diff line number Diff line change @@ -50,8 +50,9 @@ private String[] getArguments() {
50
50
arg [0 ] = getAction ().name ();
51
51
arg [1 ] = this .configFileName ;
52
52
arg [2 ] = this .googleSheetId ;
53
- arg [3 ] = String .valueOf (this .combineSheets );
54
- arg [4 ] = this .deeplApiKey ;
53
+ arg [3 ] = this .deeplApiKey ;
54
+ arg [4 ] = String .valueOf (this .combineSheets );
55
+
55
56
return arg ;
56
57
}
57
58
You can’t perform that action at this time.
0 commit comments