SHL-21 update hint message

This commit is contained in:
Jarred Li
2012-04-15 09:18:49 +08:00
parent d8ec63e26e
commit 74d872bbb5
2 changed files with 40 additions and 13 deletions

View File

@@ -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);
}
}