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

Make it easier to discover available output formats #409

Closed
mfussenegger opened this issue Nov 22, 2023 · 1 comment · Fixed by #412
Closed

Make it easier to discover available output formats #409

mfussenegger opened this issue Nov 22, 2023 · 1 comment · Fixed by #412

Comments

@mfussenegger
Copy link
Member

The available formats are listed in the docs but they're not easy to discover when using the CLI.

crash --help shows:

--format FORMAT the output FORMAT of the SQL response

crash --format shows:

crash: error: argument --format: expected one argument

crash --format invalid finally shows them:

crash: error: argument --format: invalid choice: 'invalid' (choose from 'tabular', 'json', 'csv', 'raw', 'mixed', 'dynamic', 'json_row')

Not sure how to best solve this. Maybe --help could include a hint, or --format without any other argument could list them

@amotl
Copy link
Member

amotl commented Nov 23, 2023

Hi Mathias,

thank you for your suggestion. An improvement to display the list of available output formats using crash --help has been implemented with GH-412. It has been included into crash 0.30.1, which is now available as a package from PyPI and as a standalone application.

With kind regards,
Andreas.

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

Successfully merging a pull request may close this issue.

2 participants