There's some code shared between bin/files integrity and bin/files migrate, and maybe other bin/files commands. This code expects a --from-engine argument to exist, but it may not. It also references a flag named "--names", but this is the name of the wildcard argument to bin/files migrate.
Callers to this method should be made more consistent.