diff --git a/src/main/java/com/eternitywall/OtsCli.java b/src/main/java/com/eternitywall/OtsCli.java index 38f1673..6d7c401 100644 --- a/src/main/java/com/eternitywall/OtsCli.java +++ b/src/main/java/com/eternitywall/OtsCli.java @@ -45,7 +45,8 @@ public static void main(String[] args) { // args are the arguments passed to the the application via the main method if(line.hasOption("c")) { - calendarsUrl.add( line.getOptionValue("c") ); + String[] cals = line.getOptionValues("c"); + calendarsUrl.addAll( Arrays.asList(cals) ); } else if(line.hasOption("m")) { m = Integer.valueOf(line.getOptionValue("m")); } else if(line.hasOption("V")) {