mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
improve i18n support
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user