HTablePool pool = new HTablePool();
UsersDAO dao = new UsersDAO(pool);
if ("get".equals(args[0])) {
log.debug(String.format("Getting user %s", args[1]));
User u = dao.getUser(args[1]);
System.out.println(u);
}
if ("add".equals(args[0])) {
log.debug("Adding user...");
dao.addUser(args[1], args[2], args[3], args[4]);
User u = dao.getUser(args[1]);
System.out.println("Successfully added user " + u);
}
if ("list".equals(args[0])) {
List<User> users = dao.getUsers();