1
0

Update docs

This commit is contained in:
Vinoth Chandar
2017-04-26 14:03:06 -07:00
committed by prazanna
parent da17c5c607
commit b4e787ce1d
2 changed files with 76 additions and 9 deletions

View File

@@ -52,11 +52,19 @@ public class HoodieClientExample {
@Parameter(names={"--table-type", "-t"}, description = "One of COPY_ON_WRITE or MERGE_ON_READ")
private String tableType = HoodieTableType.COPY_ON_WRITE.name();
@Parameter(names = {"--help", "-h"}, help = true)
public Boolean help = false;
private static Logger logger = LogManager.getLogger(HoodieClientExample.class);
public static void main(String[] args) throws Exception {
HoodieClientExample cli = new HoodieClientExample();
new JCommander(cli, args);
JCommander cmd = new JCommander(cli, args);
if (cli.help || args.length == 0) {
cmd.usage();
System.exit(1);
}
cli.run();
}