cli icon indicating copy to clipboard operation
cli copied to clipboard

[Bug] Arguments cannot be used out of order, but do not report any error.

Open askreet opened this issue 2 years ago • 1 comments

What are you really trying to do?

I am trying to use temporal operator namespace create to create a namespace in a remote cluster using --env.

Describe the bug

The following command works:

temporal operator namespace --env my-env create new-namespace-name

The following command silently ignores --env and uses the default localhost cluster:

temporal operator namespace create new-namespace-name --env my-env

Minimal Reproduction

  1. Configure an env to point to a remote cluster.
  2. Use the --env flag in the tail position. Watch it be ignored.

Environment/Versions

  • OS and processor: M1 Mac
  • Temporal Version: 0.10.5 (server 1.21.4) (ui 2.17.0)
  • Are you using Docker or Kubernetes or building Temporal from source? Local CLI, docker Server and remove Server.

Additional context

FWIW, my preference would be for the tail position --env to work, but if it's not going to it should tell me it's an invalid flag or in an invalid position, rather than silently accepting it.

askreet avatar Sep 29 '23 14:09 askreet

my preference would be for the tail position --env to work

Mine as well!

lorensr avatar Oct 03 '23 04:10 lorensr

This should be done in 0.12.

josh-berry avatar May 07 '24 23:05 josh-berry