Index: lutincommandline/src/java/org/codelutin/option/def/DefaultOptionAction.java diff -u lutincommandline/src/java/org/codelutin/option/def/DefaultOptionAction.java:1.2 lutincommandline/src/java/org/codelutin/option/def/DefaultOptionAction.java:1.3 --- lutincommandline/src/java/org/codelutin/option/def/DefaultOptionAction.java:1.2 Sun Mar 16 21:15:58 2008 +++ lutincommandline/src/java/org/codelutin/option/def/DefaultOptionAction.java Mon Mar 17 22:39:33 2008 @@ -1,3 +1,16 @@ +/** + * ##% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program is + * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A + * PARTICULAR PURPOSE. See the GNU General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. ##%* + */ package org.codelutin.option.def; import org.codelutin.option.OptionActionRunnable; Index: lutincommandline/src/java/org/codelutin/option/def/ArgumentDefinition.java diff -u lutincommandline/src/java/org/codelutin/option/def/ArgumentDefinition.java:1.1.1.1 lutincommandline/src/java/org/codelutin/option/def/ArgumentDefinition.java:1.2 --- lutincommandline/src/java/org/codelutin/option/def/ArgumentDefinition.java:1.1.1.1 Sat Feb 9 15:05:36 2008 +++ lutincommandline/src/java/org/codelutin/option/def/ArgumentDefinition.java Mon Mar 17 22:39:33 2008 @@ -1,5 +1,6 @@ /** - * ##% Copyright (C) 2002, 2007 Code Lutin This program is free software; you + * ##% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you * can redistribute it and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. This program is Index: lutincommandline/src/java/org/codelutin/option/def/DefinitionParserContexts.java diff -u lutincommandline/src/java/org/codelutin/option/def/DefinitionParserContexts.java:1.1.1.1 lutincommandline/src/java/org/codelutin/option/def/DefinitionParserContexts.java:1.2 --- lutincommandline/src/java/org/codelutin/option/def/DefinitionParserContexts.java:1.1.1.1 Sat Feb 9 15:05:37 2008 +++ lutincommandline/src/java/org/codelutin/option/def/DefinitionParserContexts.java Mon Mar 17 22:39:33 2008 @@ -134,7 +134,9 @@ } OptionContext parseOption(String key, String definition) { - log.info('[' + key + "] '" + definition + "'"); + if (log.isDebugEnabled()) { + log.info('[' + key + "] '" + definition + "'"); + } String[] strings = StringUtil.split(OPENING_CHARS, CLOSING_CHARS, definition, " "); List tokens = new ArrayList(Arrays.asList(strings)); @@ -758,7 +760,9 @@ defaultValue = getDefaultValue(key, type, converter, vals[1]); } ConfigPropertyContext context = new ConfigPropertyContext(this, key, type, mods, defaultValue); - log.info(context); + if (log.isDebugEnabled()) { + log.info(context); + } addSon(context); } }