From d152af13abb51da276b6e4603aa4ec3764d560e8 Mon Sep 17 00:00:00 2001 From: willtyler Date: Fri, 18 Oct 2024 15:03:24 +0000 Subject: [PATCH] Allow write to /dev/null --- vcztools/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcztools/cli.py b/vcztools/cli.py index cfd1322..693a6c4 100644 --- a/vcztools/cli.py +++ b/vcztools/cli.py @@ -151,7 +151,7 @@ def view( include, exclude, ): - if output and not output.endswith(".vcf"): + if output and not output.endswith(".vcf") and output != "/dev/null": split = output.split(".") raise ValueError(f"Output file extension must be .vcf, got: .{split[-1]}")