949596979899100101102103
public void setArgs(String[] args) { parser.parse(args); if (Strings.isNullOrEmpty(parser.getParsedCommand())) { throw new MissingCommandException("A command is required"); } else { command = registeredCommands.get(parser.getParsedCommand()); } }