Improve help message code.

This commit is contained in:
Christian Pierre MOMON 2016-08-17 11:59:01 +02:00
parent b8241093a7
commit 8bc116734c

View File

@ -28,6 +28,8 @@ import org.dclermonte.siba.model.SibaManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.util.strings.StringList;
/**
* This class CLI is for use from Command Line Interface.
*
@ -95,13 +97,18 @@ public final class SibaCLI
/**
* This method send help response.
*
*/
public static void help()
{
System.out.println("Usage:");
System.out.println(" siba [ -h | -help | --help ]");
System.out.println(" siba backup directoryToSave [ target ]");
System.out.println(" siba check [ filename | filename.tgz | filename.tgz.md5 ]");
StringList message = new StringList();
message.appendln("Usage:");
message.appendln(" siba [ -h | -help | --help ]");
message.appendln(" siba backup directoryToSave [ target ]");
message.appendln(" siba check [ filename | filename.tgz | filename.tgz.md5 ]");
System.out.println(message.toString());
}
/**