issue #1176 added --do-not-write-schema switch