@Cli(name = "git",
description = "the stupid content tracker",
defaultCommand = Help.class,
commands = { Help.class, Add.class },
groups = {
@Group(name = "remote",
description = "Manage set of tracked repositories",
defaultCommand = RemoteShow.class,
commands = { RemoteShow.class, RemoteAdd.class })
},
parserConfiguration = @Parser(
aliases = {
@Alias(
name = "foo",
arguments = { "remote", "show" }
)
})
)
public class GitWithCliAnnotation2 extends Git {
public static void run(String[] args) {
com.github.rvesse.airline.Cli<Runnable> gitParser = new com.github.rvesse.airline.Cli<Runnable>(
GitWithCliAnnotation2.class);
gitParser.parse(args).run();
}
}