presto-cli/src/main/java/io/prestosql/cli/VersionOption.java/VersionOption/showVersionIfRequested
class VersionOption:    public boolean showVersionIfRequested()
    {
        if (version) {
            String clientVersion = Presto.class.getPackage().getImplementationVersion();
            System.out.println("Presto CLI " + firstNonNull(clientVersion, "(version unknown)"));
        }
        return version;
    }