diff --git a/bcftools.wdl b/bcftools.wdl
index e60142dbca948a9e3d69ee0f502c1fa67ae9de44..b99a8cf581517272beeb174dace0c2ed7587f4ce 100644
--- a/bcftools.wdl
+++ b/bcftools.wdl
@@ -37,9 +37,9 @@ task View {
         set -e
         mkdir -p "$(dirname ~{outputPath})"
         bcftools view \
-        ~{inputFile}  -o ~{outputPath} \
+        -o ~{outputPath} \
         -O ~{outputType} \
-        -l ~{compressionLevel}
+        -l ~{compressionLevel} \
         ~{inputFile}
         bcftools index --tbi ~{outputPath}