From e81296e158e08844c0a30d6d305ac61f0224c9e0 Mon Sep 17 00:00:00 2001 From: Anthony Pessy Date: Thu, 2 Apr 2015 19:22:19 +0200 Subject: [PATCH] simplify doHelp, parameter was always NULL --- src/jrds/bootstrap/BootStrap.java | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/jrds/bootstrap/BootStrap.java b/src/jrds/bootstrap/BootStrap.java index 6653a6497..70d2c0841 100644 --- a/src/jrds/bootstrap/BootStrap.java +++ b/src/jrds/bootstrap/BootStrap.java @@ -60,7 +60,7 @@ public static void main(String[] args) { if(args.length > 1) commandName = args[1].trim().toLowerCase(); else - doHelp(null); + doHelp(); } else { if(args.length > 1) @@ -156,20 +156,17 @@ else if(libFile.isFile() && libFile.getName().endsWith(".jar")) return null; } - static private void doHelp(CommandStarter command) { - if(command == null) { - System.out.println("Lists of available command:"); - for(String commandName: cmdClasses.keySet()) { - System.out.println(" " + commandName); - } - System.out.println(""); - System.out.println("Lists of configuration propreties:"); - for(String propName: propertiesList) { - System.out.println(" " + propName); - } - System.out.println(String.format("A class path can be auto build with the propery libspath, a list of directory or jar, separated by a %s", File.pathSeparatorChar)); - + static private void doHelp() { + System.out.println("Lists of available command:"); + for(String commandName: cmdClasses.keySet()) { + System.out.println(" " + commandName); + } + System.out.println(""); + System.out.println("Lists of configuration propreties:"); + for(String propName: propertiesList) { + System.out.println(" " + propName); } + System.out.println(String.format("A class path can be auto build with the propery libspath, a list of directory or jar, separated by a %s", File.pathSeparatorChar)); System.exit(0); }