File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed
src/main/java/io/simplelocalize/cli Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ ignoreKeys:
311311 - ' ABOUT-US'
312312
313313# Properties used by 'pull' and 'publish' command
314- pullPath: ./src/hosting/
314+ pullPath: ./src/hosting/
315315environment: ' production' # or 'latest'
316316
317317` ` `
@@ -329,9 +329,10 @@ export http_proxy=http://someproxy.com:8080
329329export http_proxy=http://user:[email protected] :8080330330` ` `
331331
332- # # Documentation
332+ # # Documentation
333333
334- Visit [simplelocalize.io/docs/cli/get-started/](https://simplelocalize.io/docs/cli/get-started/) to get more information about SimpleLocalize CLI.
334+ Visit [simplelocalize.io/docs/cli/get-started/](https://simplelocalize.io/docs/cli/get-started/) to get more information
335+ about SimpleLocalize CLI.
335336
336337# # License
337338
Original file line number Diff line number Diff line change 44 <modelVersion >4.0.0</modelVersion >
55 <groupId >io.simplelocalize</groupId >
66 <artifactId >simplelocalize-cli</artifactId >
7- <version >2.4.0 </version >
7+ <version >2.4.1 </version >
88 <packaging >jar</packaging >
99 <name >simplelocalize-cli</name >
1010 <description >Official SimpleLocalize Command Line Interface</description >
Original file line number Diff line number Diff line change @@ -248,7 +248,15 @@ public void download(
248248 {
249249 configuration .setCustomerId (customerId );
250250 }
251- configuration .setDownloadOptions (Objects .requireNonNullElseGet (downloadOptions , ArrayList ::new ));
251+
252+ List <String > nonNullConfigurationFileDownloadOptions = Objects .requireNonNullElse (configuration .getDownloadOptions (), List .of ());
253+ configuration .setDownloadOptions (nonNullConfigurationFileDownloadOptions );
254+ boolean hasArgumentDownloadOptions = downloadOptions != null && !downloadOptions .isEmpty ();
255+ if (hasArgumentDownloadOptions )
256+ {
257+ configuration .setDownloadOptions (downloadOptions );
258+ }
259+
252260 ConfigurationValidator configurationValidator = new ConfigurationValidator ();
253261 configurationValidator .validateDownloadConfiguration (configuration );
254262 SimpleLocalizeClient client = SimpleLocalizeClient .create (configuration .getBaseUrl (), configuration .getApiKey ());
Original file line number Diff line number Diff line change 33public class Version
44{
55
6- public static final String NUMBER = "2.4.0 " ;
6+ public static final String NUMBER = "2.4.1 " ;
77
88 private Version ()
99 {
You can’t perform that action at this time.
0 commit comments