com.alachisoft.ncache.common.commandline.CommandLineArgs Maven / Gradle / Ivy
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.alachisoft.ncache.common.commandline;
/**
* @author Muneeb_Shahid
*/
public abstract class CommandLineArgs {
private Boolean usage = false;
private Boolean logo = true;
@ArgumentAttributeAnnotation(defaultValue = "false", shortNotation = "-h", fullNotation = "--help", appendText = "")
public Boolean getUsage() {
return usage;
}
@ArgumentAttributeAnnotation(defaultValue = "false", shortNotation = "-h", fullNotation = "--help", appendText = "")
public void setUsage(Boolean usage) {
this.usage = usage;
}
@ArgumentAttributeAnnotation(defaultValue = "true", shortNotation = "-G", fullNotation = "--nologo", appendText = "")
public Boolean getLogo() {
return logo;
}
@ArgumentAttributeAnnotation(defaultValue = "true", shortNotation = "-G", fullNotation = "--nologo", appendText = "")
public void setLogo(Boolean logo) {
this.logo = logo;
}
public void printUsage() {
StringBuilder usageBuilder = new StringBuilder();
usageBuilder.append(" ").append("-h --help [help].").append("\n");
usageBuilder.append(" \t").append("Displays a detailed help screen.").append("\n").append("\n");
usageBuilder.append(" ").append("-G --nologo [nologo]").append("\n");
usageBuilder.append(" \t").append("Suppresses the display of the logo banner").append("\n").append("\n");
System.out.print(usageBuilder.toString());
}
public void printLogo() {
System.out.println("Alachisoft (R) NCache Utility - License Tool. Version 5.0.0.0" + "\nCopyright (C) Alachisoft 2018. All rights reserved.\n");
}
}