- Add IntegerFlag
- test case for negative numbers
- test case for strings that start with dash
- ex.
Wget -O - example.com
O is output, '-' is stdout
- ex.
- test case for default values
- (ambitious) support lists as values for flags
Args Kata, from Clean Code.
Please don't look for solutions before the session, only read the description, try to understand the problem and think a bit about possible solutions.
For those interested in a simpler kata about code comments:
- In Chapter 4 (comments) look for the last section, "Example" at the end of the chapter. Line 71 in the physical book.
I have cloned a Java -Maven boilerplate repo I had, which used the Maven Quickstart Archetype, adding JAR Archive Config as well.
mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4
Added maven-jar-plugin
config
mvn test
mvn clean package
java -cp target/basic-archetype-test-1.0-SNAPSHOT.jar org.example.App
java -jar target/basic-archetype-test-1.0-SNAPSHOT.jar