diff --git a/src/org/atriasoft/death/ArgumentManager.java b/src/org/atriasoft/death/ArgumentManager.java index 9cf2be1..7712eb3 100644 --- a/src/org/atriasoft/death/ArgumentManager.java +++ b/src/org/atriasoft/death/ArgumentManager.java @@ -139,7 +139,6 @@ public class ArgumentManager { //localManager.showHelp(); int nbParameters = localManager.argumentPostConfigure.size(); - boolean findExecutor = false; List executor = localManager.properties.getExecutor(); for (Method exec : executor) { if (nbParameters != exec.getParameterCount()) { @@ -200,9 +199,55 @@ public class ArgumentManager { localManager.argumentPostConfigure.get(4), // localManager.argumentPostConfigure.get(5), // localManager.argumentPostConfigure.get(6)); + case 8: + exec.invoke(obj, // + localManager.argumentPostConfigure.get(0), // + localManager.argumentPostConfigure.get(1), // + localManager.argumentPostConfigure.get(2), // + localManager.argumentPostConfigure.get(3), // + localManager.argumentPostConfigure.get(4), // + localManager.argumentPostConfigure.get(5), // + localManager.argumentPostConfigure.get(6), // + localManager.argumentPostConfigure.get(7)); + case 9: + exec.invoke(obj, // + localManager.argumentPostConfigure.get(0), // + localManager.argumentPostConfigure.get(1), // + localManager.argumentPostConfigure.get(2), // + localManager.argumentPostConfigure.get(3), // + localManager.argumentPostConfigure.get(4), // + localManager.argumentPostConfigure.get(5), // + localManager.argumentPostConfigure.get(6), // + localManager.argumentPostConfigure.get(7), // + localManager.argumentPostConfigure.get(8)); + case 10: + exec.invoke(obj, // + localManager.argumentPostConfigure.get(0), // + localManager.argumentPostConfigure.get(1), // + localManager.argumentPostConfigure.get(2), // + localManager.argumentPostConfigure.get(3), // + localManager.argumentPostConfigure.get(4), // + localManager.argumentPostConfigure.get(5), // + localManager.argumentPostConfigure.get(6), // + localManager.argumentPostConfigure.get(7), // + localManager.argumentPostConfigure.get(8), // + localManager.argumentPostConfigure.get(9)); + case 11: + exec.invoke(obj, // + localManager.argumentPostConfigure.get(0), // + localManager.argumentPostConfigure.get(1), // + localManager.argumentPostConfigure.get(2), // + localManager.argumentPostConfigure.get(3), // + localManager.argumentPostConfigure.get(4), // + localManager.argumentPostConfigure.get(5), // + localManager.argumentPostConfigure.get(6), // + localManager.argumentPostConfigure.get(7), // + localManager.argumentPostConfigure.get(8), // + localManager.argumentPostConfigure.get(9), // + localManager.argumentPostConfigure.get(10)); break; default: - Log.error("Does not manage more than 7 arguments"); + Log.error("Does not manage more than 11 arguments"); break; } } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {