Docker-compose lost flag '-c' since last update

Update to docker-compose: v2.0.0-beta.6
docker version: 20.10.7
I had scripts using the ‘-c’ (context) option flag, like in:

 docker-compose -p ka_dev -c testserver up --build -d frontend backend db

Everything worked fine last week. After update of Docker, I get

unknown shorthand flag: ‘c’ in -c

Do you have the same problem?

BTW: Solution is to use ‘–context’ instead of ‘-c’ . But strange that a shorthand flag got lost…

Hmm. I’m not seeing anything that sticks out in the changelog of v2.0.0-beta.6v2.0.0-beta.5. Do you remember what version you were on before?

Please file a ticket at GitHub - docker/compose-cli: Easily run your Compose application to the cloud with compose-cli and we can help you further. Please also include any other information, like docker info output and the previous version you were on.

Hello guys. I updated to the docker/docker-compose version (Docker version 20.10.8, build 3967b7d, Docker Compose version v2.0.0) and now I get error messages when I try to use the “-c” or “–context” flags:

unknown flag: --context

In July 21, I got the messge “ unknown flag: -c ” but I could go on with --context, now this option is gone also. Does anyone have information about this?

There is no --context or -c in Docker Compose 2.0. The following still works on Linux and Mac:

DOCKER_CONTEXT=contextname docker-compose up -d