]> git.donarmstrong.com Git - samtools.git/blobdiff - sam_view.c
* samtools-0.1.5-19 (r426)
[samtools.git] / sam_view.c
index 1776b8eb586b99b3123b8dffaeb39849179d30cc..2e89921e0b1d6d2149d64239d706d53547df47ad 100644 (file)
@@ -77,16 +77,14 @@ int main_samview(int argc, char *argv[])
        if (argc == optind) return usage(is_long_help);
 
        // generate the fn_list if necessary
-       if (fn_list && fn_ref) {
-               fprintf(stderr, "[main_samview] both -t and -T are applied. -T is ignored.\n");
-       } else fn_list = samfaipath(fn_ref);
+       if (fn_list == 0 && fn_ref) fn_list = samfaipath(fn_ref);
        // open file handlers
        if ((in = samopen(argv[optind], in_mode, fn_list)) == 0) {
                fprintf(stderr, "[main_samview] fail to open file for reading.\n");
                goto view_end;
        }
        if (in->header == 0) {
-               fprintf(stderr, "[main_samview] fail to read SAM header.\n");
+               fprintf(stderr, "[main_samview] fail to read the header.\n");
                goto view_end;
        }
        if ((out = samopen(fn_out? fn_out : "-", out_mode, in->header)) == 0) {