How to verify if server supports TLS 1.2

I was implementing an Apple Pay functionality for a website and one of the requirements was that the server must support the Transport Layer Security (TLS) 1.2 protocol. There was an easy way to check that from MacOS command line.

openssl s_client -connect example.com:443 -tls1_2

I got a certificate chain as a response, which confirmed that TLS 1.2 was in use.