edgedb-cli icon indicating copy to clipboard operation
edgedb-cli copied to clipboard

`edgedb database --help-connect` throws an error

Open raddevon opened this issue 2 years ago • 3 comments

When running edgedb database --help, the help text says I can use the --help-connect option to learn about connection options, but that doesn't seem to work on this command. It gives this error:

error: Found argument '--help-connect' which wasn't expected, or isn't valid in this context
  • EdgeDB Version: (command not run against a database)
  • EdgeDB CLI Version: 3.4.0+4d95a2c
  • OS Version: 13.4.1

raddevon avatar Aug 28 '23 20:08 raddevon

This could be fixed either by making the --help-connect option work on this command or by removing the help text suggesting to use it. Maybe the latter makes the most sense since you need a subcommand for the connection options to be relevant, but I suspect we might need to fix with the former instead to be consistent.

raddevon avatar Aug 28 '23 20:08 raddevon

This may be farther-reaching than I first though. It also happens with edgedb database wipe, and I think the connection options are relevant there.

raddevon avatar Aug 28 '23 20:08 raddevon

Happens on all of the database subcommands.

raddevon avatar Aug 28 '23 20:08 raddevon