import de.vandermeer.asciitable.AsciiTable;
import de.vandermeer.skb.interfaces.StandardExampleAsker;
public class CommandLineInterfaceExample {
@Option(shortName = "n", name = "name", defaultValue = "World", description = "Your name")
private String name;
public static void main(String[] args) {
CommandLineInterfaceExample example = new CommandLineInterfaceExample();
CmdLineParser parser = new CmdLineParser(example);
try {
parser.processCommandLine(args);
} catch (CmdLineException e) {
System.err.println(e.getMessage());
parser.printUsage(System.err);
System.exit(1);
}
System.out.println("Hello, " + example.name + "!");
}
}