| | |
| | | { |
| | | printUsage = true; |
| | | } |
| | | for (int i=0; i<args.length; i++) |
| | | { |
| | | if (args[i].equalsIgnoreCase("-H") || |
| | | args[i].equalsIgnoreCase("--help") || |
| | | args[i].equalsIgnoreCase("-?")) |
| | | { |
| | | printUsage = true; |
| | | } |
| | | } |
| | | if (printUsage) |
| | | { |
| | | printUsage(); |
| | | printUsage(System.out); |
| | | System.exit(1); |
| | | |
| | | } else |
| | |
| | | return returnValue[0]; |
| | | } |
| | | |
| | | private static void printUsage() |
| | | private static void printUsage(PrintStream stream) |
| | | { |
| | | String arg; |
| | | if (Utils.isWindows()) |
| | |
| | | */ |
| | | String msg = getMsg("status-panel-launcher-usage"); |
| | | msg = msg.replace("{0}", arg); |
| | | System.err.println(msg); |
| | | stream.println(msg); |
| | | } |
| | | |
| | | /** |