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

zsv help 2json returns exit code 5 #153

Closed
iamazeem opened this issue Mar 6, 2024 · 1 comment · Fixed by #155
Closed

zsv help 2json returns exit code 5 #153

iamazeem opened this issue Mar 6, 2024 · 1 comment · Fixed by #155
Labels
bug Something isn't working

Comments

@iamazeem
Copy link
Collaborator

iamazeem commented Mar 6, 2024

Unlike other commands, zsv help 2json returns an exit code 5 whereas others return 0.
zsv help 2json should also return 0 to be consistent with the rest.

CLI:

$ zsv version
zsv version 0.3.8-alpha (lib 0.3.8-alpha)

$ zsv help 2json
2json: streaming CSV to json converter, or sqlite3 db to JSON converter

Usage: 
   2json [input.csv] [options]
   2json --from-db <sqlite3_filename> [options]

Options:
  -h, --help
  -o, --output <filename>       : output to specified filename
  --compact                     : output compact JSON
  --from-db                     : input is sqlite3 database
  --db-table <table_name>       : name of table in input database to convert
  --object                      : output as array of objects
  --no-empty                    : omit empty properties (only with --object)
  --database                    : output in database schema
  --no-header                   : treat the header row as a data row
  --index <name on expr>        : add index to database schema
  --unique-index <name on expr> : add unique index to database schema

$ echo $?
5

Screenshot:

Screenshot from 2024-03-06 23-21-59


OS: Ubuntu 22.04 LTS
zsv: 0.3.8-alpha

@liquidaty liquidaty added the bug Something isn't working label Mar 6, 2024
@liquidaty
Copy link
Owner

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants