SHl-22 limit history size, remove dead code

This commit is contained in:
Jarred Li
2012-04-14 09:24:34 +08:00
parent 02ab62bfe4
commit 5dca1a102a
7 changed files with 92 additions and 82 deletions

View File

@@ -88,7 +88,7 @@
<id>spring-maven-snapshot</id>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<!-- <updatePolicy>always</updatePolicy> -->
</snapshots>
<name>Springframework Maven SNAPSHOT Repository</name>
<url>http://maven.springframework.org/snapshot</url>

View File

@@ -17,7 +17,9 @@ public class HelloWorldCommands implements CommandMarker {
@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) {
System.out.println("Hello world " + message);
@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);
}
}