All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alachisoft.ncache.activate.cmdline.eval.EvalArgs Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.alachisoft.ncache.activate.cmdline.eval;

import com.alachisoft.ncache.common.commandline.ArgumentAttributeAnnotation;
import com.alachisoft.ncache.common.commandline.CommandLineArgs;

/**
 * @author Muneeb_Shahid
 */
public class EvalArgs extends CommandLineArgs {

    private String extensionKey;

    @ArgumentAttributeAnnotation(defaultValue = "", shortNotation = "-e", fullNotation = "--extensionkey", appendText = "")
    public String getExtensionKey() {
        return extensionKey;
    }

    @ArgumentAttributeAnnotation(defaultValue = "", shortNotation = "-e", fullNotation = "--extensionkey", appendText = "")
    public void setExtensionKey(String extensionKey) {
        this.extensionKey = extensionKey;
    }

    @Override
    public void printUsage() {
        StringBuilder usageBuilder = new StringBuilder();
        usageBuilder.append("Usage: -e extensionkey [option[...]].").append("\n");
        usageBuilder.append("Argument:").append("\n").append("\n");
        usageBuilder.append("  ").append("-e: --extensionkey [extensionkey]").append("\n");
        usageBuilder.append(" \t").append("Specify the extension key.").append("\n").append("\n");
        System.out.print(usageBuilder.toString());
        super.printUsage();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy