Removed end blank line in version display.
This commit is contained in:
parent
be075eb180
commit
ce2342008a
1 changed files with 16 additions and 10 deletions
|
@ -133,7 +133,7 @@ public final class StatoolInfosCLI
|
|||
|
||||
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]));
|
||||
|
||||
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())
|
||||
{
|
||||
Files inputs = FilesUtils.searchEndingWith(configurationFile, ".conf");
|
||||
|
@ -405,15 +419,7 @@ public final class StatoolInfosCLI
|
|||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
StatoolInfos.probe(configurationFile);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
logger.error("Error with [{}]: {}", configurationFile.getAbsoluteFile(), exception.getMessage());
|
||||
exception.printStackTrace();
|
||||
}
|
||||
System.out.println("Parameter is not a directory.");
|
||||
}
|
||||
}
|
||||
else if (isMatching(args, "stat", "ip", "\\s*\\S+\\s*"))
|
||||
|
|
Loading…
Reference in a new issue