Line breaks need to be escaped in the command list.
__complete_options
}
-__cmds="
-btlog
-build
-checkupdates
-dscanner
-gpgsign
-import
-init
-install
-lint
-publish
-readmeta
-rewritemeta
-scanner
-server
-signatures
-signindex
-stats
-update
-verify
+__cmds=" \
+btlog \
+build \
+checkupdates \
+dscanner \
+gpgsign \
+import \
+init \
+install \
+lint \
+publish \
+readmeta \
+rewritemeta \
+scanner \
+server \
+signatures \
+signindex \
+stats \
+update \
+verify \
"
for c in $__cmds; do