Permalink
Browse files

small nits

  • Loading branch information...
1 parent 376e061 commit 121be1be9f68b9a21b994801b85db420d5d63ee3 Adrian Cole committed with May 14, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 README.md
View
@@ -3,14 +3,16 @@ Git-like-cli
Git-like-cli is a Java annotation-based framework for parsing Git like command line structures.
+Latest release is 0.3, available from Maven Central.
+
Here is a quick example:
```java
public class Git
{
public static void main(String[] args)
{
- CliBuilder<Runnable> builder = buildCli("git", Runnable.class)
+ CliBuilder<Runnable> builder = Cli.buildCli("git", Runnable.class)
.withDescription("the stupid content tracker")
.withDefaultCommand(Help.class)
.withCommands(Help.class,
@@ -22,14 +24,14 @@ public class Git
.withCommands(RemoteShow.class,
RemoteAdd.class);
- GitLikeCli<Runnable> gitParser = builder.build();
+ Cli<Runnable> gitParser = builder.build();
gitParser.parse(args).run();
}
public static class GitCommand implements Runnable
{
- @Option(type = GLOBAL, name = "-v", description = "Verbose mode")
+ @Option(type = OptionType.GLOBAL, name = "-v", description = "Verbose mode")
public boolean verbose;
public void run()

0 comments on commit 121be1b

Please sign in to comment.