From fa6df13b4b3d26fbd7449b501ce215111265752e Mon Sep 17 00:00:00 2001 From: Eric Bottard Date: Wed, 21 May 2014 11:43:02 +0200 Subject: [PATCH] Update HelloWorldCommands.java Add explanation that "hw simple" must be run once first --- .../samples/helloworld/commands/HelloWorldCommands.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/helloworld/src/main/java/org/springframework/shell/samples/helloworld/commands/HelloWorldCommands.java b/samples/helloworld/src/main/java/org/springframework/shell/samples/helloworld/commands/HelloWorldCommands.java index 56cdb583..1ef7ac56 100644 --- a/samples/helloworld/src/main/java/org/springframework/shell/samples/helloworld/commands/HelloWorldCommands.java +++ b/samples/helloworld/src/main/java/org/springframework/shell/samples/helloworld/commands/HelloWorldCommands.java @@ -34,7 +34,7 @@ public class HelloWorldCommands implements CommandMarker { return "Message = [" + message + "] Location = [" + location + "]"; } - @CliCommand(value = "hw complex", help = "Print a complex hello world message") + @CliCommand(value = "hw complex", help = "Print a complex hello world message (run 'hw simple' once first)") public String hello( @CliOption(key = { "message" }, mandatory = true, help = "The hello world message") final String message, @CliOption(key = { "name1"}, mandatory = true, help = "Say hello to the first name") final String name1, @@ -44,7 +44,7 @@ public class HelloWorldCommands implements CommandMarker { return "Hello " + name1 + " and " + name2 + ". Your special message is " + message + ". time=[" + time + "] location=[" + location + "]"; } - @CliCommand(value = "hw enum", help = "Print a simple hello world message from an enumerated value") + @CliCommand(value = "hw enum", help = "Print a simple hello world message from an enumerated value (run 'hw simple' once first)") public String eenum( @CliOption(key = { "message" }, mandatory = true, help = "The hello world message") final MessageType message){ return "Hello. Your special enumerated message is " + message; @@ -65,4 +65,4 @@ public class HelloWorldCommands implements CommandMarker { return type; } } -} \ No newline at end of file +}