Influxdb: influx command should not display usage when the error is returned from a query

Created on 3 May 2019  路  3Comments  路  Source: influxdata/influxdb

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
kinbug teauser-tools

Most helpful comment

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

All 3 comments

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.

This seems to be still relevant

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
Was this page helpful?
0 / 5 - 0 ratings

Related issues

dandv picture dandv  路  3Comments

leehambley picture leehambley  路  4Comments

binary0111 picture binary0111  路  3Comments

jayannah picture jayannah  路  3Comments

Raniz85 picture Raniz85  路  3Comments