Index: lutinutil/src/java/org/codelutin/util/Option.java diff -u lutinutil/src/java/org/codelutin/util/Option.java:1.7 lutinutil/src/java/org/codelutin/util/Option.java:1.8 --- lutinutil/src/java/org/codelutin/util/Option.java:1.7 Wed Dec 5 03:03:57 2007 +++ lutinutil/src/java/org/codelutin/util/Option.java Thu Dec 13 01:25:36 2007 @@ -17,7 +17,7 @@ *@author Benjamin Poussin * * Copyright Code Lutin - *@version $Revision: 1.7 $ Mise a jour: $Date: 2007-12-05 03:03:57 $ par : $Author: tchemit $ + *@version $Revision: 1.8 $ Mise a jour: $Date: 2007-12-13 01:25:36 $ par : $Author: tchemit $ */ package org.codelutin.util; @@ -55,20 +55,6 @@ this.arguments = arguments; } - /** - * Launch the action associated to this option. - * - * @param parser the parser previously used - * @throws IllegalArgumentException if no action found - * @throws Exception if error while performing action - */ - public void doAction(OptionParser parser) throws Exception { - if (action == null) { - throw new IllegalArgumentException("could not found an action for this option " + this); - } - action.run(parser,this); - } - /** @return the alias used to obtain this option */ public String getUsedAlias() { return usedAlias; @@ -169,4 +155,8 @@ public String toString() { return super.toString() + " (" + usedAlias + ")" + Arrays.toString(arguments); } + + public OptionAction