为什么“ cryptsetup luksFormat”不提示输入密码?

I am expecting cryptsetup to prompt me for a passphrase, but instead it's just trying and failing to open a key file:

sudo cryptsetup luksFormat test.img cryptsetup-test

WARNING!
========
This will overwrite data on test.img irrevocably.

Are you sure? (Type uppercase yes): YES
Failed to open key file.