Skip to content

Commit

Permalink
Allow write to /dev/null
Browse files Browse the repository at this point in the history
  • Loading branch information
Will-Tyler authored and jeromekelleher committed Oct 22, 2024
1 parent d6a1fdb commit d152af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcztools/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]}")

Expand Down

0 comments on commit d152af1

Please sign in to comment.