code: public Command findCommand(String name) {
  		for (Command candidate : this.commands) {
  			String candidateName = candidate.getName();
  			if (candidateName.equals(name) || (isOptionCommand(candidate)
  					&& ("--" + candidateName).equals(name))) {
  				return candidate;
  			}
  		}
  		return null;
  	}
docs: Find a command by name.
  @param name the name of the command
  @return the command or {@code null} if not found