Commit 8935997a authored by Manuel  Segimon's avatar Manuel Segimon
Browse files

Fix command line argument index in crawler.java

parent 6c57da07
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ public class crawler {
        // Open the file and read all lines (URLs) into the queue
        String file_url = "";
        if (args.length != 0 && args[0].equals("--file")) file_url = args[1];
        if (args.length > 1 && args[2].equals("--debug")) web_crawler.debug = true;
        if (args.length > 2 && args[2].equals("--debug")) web_crawler.debug = true;
        try (FileReader f_read = new FileReader(file_url);
             BufferedReader buf_read = new BufferedReader(f_read)) {
            String url_line;