SHL-21 update hint message
This commit is contained in:
@@ -15,11 +15,14 @@ public class HelloWorldCommands implements CommandMarker {
|
||||
return true;
|
||||
}
|
||||
|
||||
@CliCommand(value = "hw echo", help = "Print a hello world message")
|
||||
@CliCommand(value = "hw-echo", help = "Print a hello world message")
|
||||
public void config(
|
||||
@CliOption(key = { "message" }, mandatory = true, help = "The hello world message") final String message,
|
||||
@CliOption(key = { "name" }, mandatory = true, help = "The hello world name ") final String name,
|
||||
@CliOption(key = { "time" }, mandatory = false, help = "The hello world time ") final String time) {
|
||||
System.out.println("Hello world " + message + "," + name + ". time:" + time);
|
||||
@CliOption(key = { "name1","name11" }, mandatory = true, help = "The hello world name1 ") final String name1,
|
||||
@CliOption(key = { "name2","name22" }, mandatory = true, help = "The hello world name2 ") final String name2,
|
||||
@CliOption(key = { "time" }, mandatory = false, help = "The hello world time ") final String time,
|
||||
@CliOption(key = { "location" }, mandatory = false, help = "The hello world location ") final String location) {
|
||||
System.out.println("Hello world " + message + ", name1: " + name1 +
|
||||
", name2:" + name2 + ". time:" + time + ".location: " + location);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user