Executes the command
validateOptions();
String addon = null;
try
{
addon = (String)operands.firstElement();
AddonControl ac = new AddonControl();
ac.uninstall(addon);
}
catch (Throwable t)
{
CLILogger.getInstance().printDetailMessage(t.getLocalizedMessage());
throw new CommandException(getLocalizedString("UninstallAddonFailed",
new Object[] {addon}));
}
CLILogger.getInstance().printDetailMessage(getLocalizedString(
"UninstallAddonCompleted", new Object[] {addon}));