File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
kbox.kibe/src/main/java/org/aksw/kbox/kibe Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,8 @@ public static void main(String[] args) throws Exception {
144144 removeKNS (new URL (knsURL ));
145145 logger .info ("KNS removed." );
146146 } else if (commands .containsKey (RESOURCE_DIR_COMMAND )) {
147- String resourceDir = commands .get (RESOURCE_DIR_COMMAND );
147+ String resourceDir = commands .get (RESOURCE_DIR_COMMAND );
148+ logger .info (resourceDir );
148149 if (resourceDir != null ) {
149150 try {
150151 setResourceFolder (resourceDir );
@@ -227,14 +228,15 @@ public static void removeKNS(URL url) {
227228
228229 /**
229230 * Command line parser.
231+ *
230232 * @param args a set o arguments received by command line
231233 * @return a Map containing the parsed arguments
232234 */
233235 public static Map <String , String > parse (String [] args ) {
234236 Map <String , String > map = new HashMap <String , String >();
235237 for (int i = 0 ; i < args .length ; i ++) {
236- if (args [i ].contains ("-" )) { // is a command
237- if (i +1 < args .length && !args [i +1 ].contains ("-" )) {
238+ if (args [i ].startsWith ("-" )) { // is a command
239+ if (i +1 < args .length && !args [i +1 ].startsWith ("-" )) {
238240 map .put (args [i ], args [i +1 ]);
239241 } else {
240242 map .put (args [i ], null );
You can’t perform that action at this time.
0 commit comments