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

influx command should not display usage when the error is returned from a query #13768

Closed
affo opened this issue May 3, 2019 · 3 comments · Fixed by #16374
Closed

influx command should not display usage when the error is returned from a query #13768

affo opened this issue May 3, 2019 · 3 comments · Fixed by #16374

Comments

@affo
Copy link
Contributor

affo commented May 3, 2019

When using query subcommand and the query errors, the influx command shouldn't display usage:

./bin/darwin/influx query @buggy.flux --org root
Error: Failed to execute query: function references unknown column "LOL".
Usage:
  influx query [query literal or @/path/to/query.flux] [flags]

Flags:
  -h, --help            Help for the query command 
  -o, --org string      The organization name
      --org-id string   The organization ID

Global Flags:
      --host string    HTTP address of Influx (default "http://localhost:9999")
      --local          Run commands locally against the filesystem
  -t, --token string   API token to be used throughout client calls
@stale
Copy link

stale bot commented Sep 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 29, 2019
@affo
Copy link
Contributor Author

affo commented Oct 4, 2019

This seems to be still relevant

@russorat
Copy link
Contributor

so the plan for this one:

  • Do not show the "help" message for any errors for any command
  • Add a message to the end of each error saying See 'influx <cmd> -h' for help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants