Removed end blank line in version display.

This commit is contained in:
Christian P. MOMON 2021-12-09 12:46:37 +01:00
parent be075eb180
commit ce2342008a

View file

@ -133,7 +133,7 @@ public final class StatoolInfosCLI
message.appendln(BuildInformation.instance().version()); message.appendln(BuildInformation.instance().version());
System.out.println(message.toString()); System.out.print(message.toString());
} }
/** /**
@ -387,6 +387,20 @@ public final class StatoolInfosCLI
{ {
File configurationFile = new File(StringUtils.trim(args[1])); File configurationFile = new File(StringUtils.trim(args[1]));
try
{
StatoolInfos.probe(configurationFile);
}
catch (Exception exception)
{
logger.error("Error with [{}]: {}", configurationFile.getAbsoluteFile(), exception.getMessage());
exception.printStackTrace();
}
}
else if (isMatching(args, "probe", "\\s*.+/\\s*"))
{
File configurationFile = new File(StringUtils.trim(args[1]));
if (configurationFile.isDirectory()) if (configurationFile.isDirectory())
{ {
Files inputs = FilesUtils.searchEndingWith(configurationFile, ".conf"); Files inputs = FilesUtils.searchEndingWith(configurationFile, ".conf");
@ -405,15 +419,7 @@ public final class StatoolInfosCLI
} }
else else
{ {
try System.out.println("Parameter is not a directory.");
{
StatoolInfos.probe(configurationFile);
}
catch (Exception exception)
{
logger.error("Error with [{}]: {}", configurationFile.getAbsoluteFile(), exception.getMessage());
exception.printStackTrace();
}
} }
} }
else if (isMatching(args, "stat", "ip", "\\s*\\S+\\s*")) else if (isMatching(args, "stat", "ip", "\\s*\\S+\\s*"))