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 exit status on error same as bcftools #117

Open
jeromekelleher opened this issue Jan 14, 2025 · 0 comments
Open

Make exit status on error same as bcftools #117

jeromekelleher opened this issue Jan 14, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@jeromekelleher
Copy link
Contributor

It's not clear that anyone would rely on the actual exit status values on error conditions, but it's something to watch out for. E.g.:`

$ bcftools query performance/data/sim_10k.vcf.gz 
Error: Missing the --format option
$ echo $?
255

vs

$ python3 -m vcztools query performance/data/sim_10k.vcz 
Usage: python -m vcztools query [OPTIONS] PATH
Try 'python -m vcztools query --help' for help.

Error: Missing option '-f' / '--format'.
jk@empire$ echo $?
2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant