Skip to content

Commit d152af1

Browse files
Will-Tylerjeromekelleher
authored andcommitted
Allow write to /dev/null
1 parent d6a1fdb commit d152af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vcztools/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def view(
151151
include,
152152
exclude,
153153
):
154-
if output and not output.endswith(".vcf"):
154+
if output and not output.endswith(".vcf") and output != "/dev/null":
155155
split = output.split(".")
156156
raise ValueError(f"Output file extension must be .vcf, got: .{split[-1]}")
157157

0 commit comments

Comments
 (0)