Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
askreet opened this issue Sep 29, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@askreet
Copy link

askreet commented Sep 29, 2023

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.

@lorensr
Copy link
Contributor

lorensr commented Oct 3, 2023

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

Mine as well!

@josh-berry
Copy link
Collaborator

This should be done in 0.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants