From 9c6c682a06b08688248a3fddeb4767e145c03755 Mon Sep 17 00:00:00 2001 From: Vlad_kv Date: Tue, 13 Aug 2019 08:37:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BF=D1=80=D0=BE=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/inport/Main.java | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/inport/Main.java b/src/inport/Main.java index 8030907..86be427 100644 --- a/src/inport/Main.java +++ b/src/inport/Main.java @@ -233,7 +233,7 @@ public class Main { private static void resolveResults(Collection args) { class Arguments { - @Argument(usage = "Путь к решению.", required = true, index = 0) + @Argument(usage = "Путь к решению.", required = true) private String pathToSolution = ""; @Argument(usage = "Путь к задаче.", required = true, index = 1) @@ -307,11 +307,9 @@ public class Main { } } - private void doMain(final String[] args) throws IOException { + public static void main(String[] args) { Map mainCommands = new TreeMap<>(); - Consumer c = (Boolean b) -> {}; - mainCommands.put("solve", new MainCommandsData(false, "Решение задачи.", Main::solve)); @@ -381,15 +379,6 @@ public class Main { */ } - public static void main(String[] args) { - final Main instance = new Main(); - try { - instance.doMain(args); - } catch (IOException ioEx) { - System.out.println("ERROR: I/O Exception encountered: " + ioEx); - } - } - private static void debug(Solver solver, int timeLimitS) { String fileName = "experiment/in.ipp"; String solverResults = "experiment/solver_results.txt"; -- GitLab