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

Valid command producing an error shows usage string unnecessarily when using "list variables" #296

Closed
wolcen opened this issue Oct 25, 2023 · 1 comment · Fixed by #298
Closed

Comments

@wolcen
Copy link

wolcen commented Oct 25, 2023

Describe the bug
Listing variables that results in an error, also displays the Usage text unnecessarily. This occurs for me when an environment does not have any variables as yet.

To Reproduce
Steps to reproduce the behavior:

  1. Run lagoon list variables -p yourenv for an environment having no existing variables.
  2. See error

Expected behavior
The error is correct; The display of command usage is unnecessary/potentially confusing.

Screenshots

$ lagoon list variables -p example-com
Error: There are no variables for project 'example-com'
Usage:
  lagoon list variables [flags]

Aliases:
  variables, v
...

Desktop (please complete the following information):

  • OS: Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants