-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add -O,--output-fmt option so it can write vcf or bcf as well as its original summary format. Add -o,--output option so it's possible to write to a file without shell redirection. Add --args option so input files can be listed directly on the command line instead of via a fofn, to make basic tests easier. Add -r,--regions and -t,--targets options, which behave the same as the equivalents in `bcftools view`. Add the --no-index option to the usage text. Simplify writing the original format. Everything can be sent directly to the output file without going via a kstring. The output writing parts are also moved into separate functions to keep main() from getting too big. Add a few extra error checks. Call exit(EXIT_FAILURE) on failure, not exit(-1). Make the -h option return success.
- Loading branch information
1 parent
3c36c9b
commit 28a8082
Showing
1 changed file
with
159 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters