Traefik Docker provider error, entrypoints cannot be a standalone element

I’m following demo1 on https://www.youtube.com/watch?v=s8qYWPC6YdI but I’m getting the following error: command traefik error: failed to decode configuration from flags: entrypoints cannot be a standalone element (type static.EntryPoints)
docker-compose.yml

version: '3'

services:
  reverse-proxy:
    image: containous/traefik:experimental-v2.0
    command:
    - "--api"
    - "--providers.docker"
    - "--entrypoints=Name:mongo Address::27017"
    ports:
      - "8080:8080"
      - "27017:27017"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

  mongo:
    image: mongo
    labels:
      - "traefik.tcp.routers.mongo.rule=HostSNI(`*`)"
      - "traefik.tcp.routers.mongo.entrypoints=mongo"

I resolved this issue by replacing

--entrypoints=Name:mongo Address::27017

with

--entrypoints.mongo.address=:27017

Based on a traefik documentation https://docs.traefik.io/master/reference/static-configuration/cli/

Hi,

We recently redid the way Traefik handles configuration flags, which includes the way an entrypoint and its parameters are specified.

https://docs.traefik.io/v2.0/routing/entrypoints/#configuration

As you have figured out, you were previously using the syntax that was in effect before that change, and you found the new syntax to do it properly now, so it's all good.

As an aside note, in the future please try to use specific versions of the official Traefik image (e.g.: traefik:2.0.0-alpha7), instead of using the experimental one, as it makes things much harder to debug and reproduce otherwise.