Use the repeat key value to determine if the argument is a file or a
key. Fixes #111.