Skip to content

Commit 9f4bef6

Browse files
committed
Add experimental, and for now hidden, option --hts-verbose
1 parent f85deee commit 9f4bef6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vcfview.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* vcfview.c -- VCF/BCF conversion, view, subset and filter VCF/BCF files.
22
3-
Copyright (C) 2013-2023 Genome Research Ltd.
3+
Copyright (C) 2013-2025 Genome Research Ltd.
44
55
Author: Shane McCarthy <[email protected]>
66
@@ -525,6 +525,7 @@ static void usage(args_t *args)
525525
fprintf(stderr, " -T, --targets-file [^]FILE Similar to -R but streams rather than index-jumps. Exclude regions with \"^\" prefix\n");
526526
fprintf(stderr, " --targets-overlap 0|1|2 Include if POS in the region (0), record overlaps (1), variant overlaps (2) [0]\n");
527527
fprintf(stderr, " --threads INT Use multithreading with INT worker threads [0]\n");
528+
//fprintf(stderr, " --hts-verbose INT Verbosity of HTSlib functions [0]\n");
528529
fprintf(stderr, "\n");
529530
fprintf(stderr, "Subset options:\n");
530531
fprintf(stderr, " -A, --trim-unseen-allele Remove '<*>' or '<NON_REF>' at variant (-A) or at all (-AA) sites\n");
@@ -618,6 +619,7 @@ int main_vcfview(int argc, char *argv[])
618619
{"exclude-phased",no_argument,NULL,'P'},
619620
{"no-version",no_argument,NULL,8},
620621
{"write-index",optional_argument,NULL,'W'},
622+
{"hts-verbose",required_argument,NULL,9},
621623
{NULL,0,NULL,0}
622624
};
623625
char *tmp;
@@ -750,6 +752,7 @@ int main_vcfview(int argc, char *argv[])
750752
break;
751753
case 9 : args->n_threads = strtol(optarg, 0, 0); break;
752754
case 8 : args->record_cmd_line = 0; break;
755+
case 10 : hts_verbose = strtol(optarg, 0, 0); break;
753756
case 'W':
754757
if (!(args->write_index = write_index_parse(optarg)))
755758
error("Unsupported index format '%s'\n", optarg);

0 commit comments

Comments
 (0)