improve i18n support

This commit is contained in:
Sebastian Sdorra
2011-05-14 16:27:20 +02:00
parent 8fc95a5689
commit 8e9da8f448
5 changed files with 100 additions and 23 deletions

View File

@@ -95,7 +95,8 @@ public class SubCommandHandler extends OptionHandler<SubCommand>
* Method description
*
*
* @param prmtrs
*
* @param parameters
*
* @return
*
@@ -106,15 +107,19 @@ public class SubCommandHandler extends OptionHandler<SubCommand>
{
String name = parameters.getParameter(0);
CommandDescriptor desc = subCommands.get(name);
if ( desc != null )
if (desc != null)
{
// owner.stopOptionParsing();
setter.addValue( desc.createSubCommand() );
}
else
{
throw new CmdLineException(owner, "command ".concat(name).concat(" not found"));
setter.addValue(desc.createSubCommand());
}
else
{
throw new CmdLineException(owner,
"command ".concat(name).concat(" not found"));
}
return 1;
}