add '-' option before install and remove

This commit is contained in:
kimchy 2010-05-14 13:43:21 +03:00
parent 04cfacec41
commit a7f9db64fc
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ public class PluginManager {
System.out.println(" - remove [list of plugin names]: Removes listed plugins"); System.out.println(" - remove [list of plugin names]: Removes listed plugins");
} }
String command = args[0]; String command = args[0];
if (command.equals("install")) { if (command.equals("install") || command.equals("-install")) {
if (args.length < 2) { if (args.length < 2) {
System.out.println("'install' requires an additional parameter with the plugin name"); System.out.println("'install' requires an additional parameter with the plugin name");
} }
@ -74,7 +74,7 @@ public class PluginManager {
System.out.println("Failed to install " + pluginName + ", reason: " + e.getMessage()); System.out.println("Failed to install " + pluginName + ", reason: " + e.getMessage());
} }
} }
} else if (command.equals("remove")) { } else if (command.equals("remove") || command.equals("-remove")) {
if (args.length < 2) { if (args.length < 2) {
System.out.println("'remove' requires an additional parameter with the plugin name"); System.out.println("'remove' requires an additional parameter with the plugin name");
} }