Fix a rather serious bug in the previous commit.

The extra arguments to lfs.attributes() weren't being passed through.
Initialize flags.parsed to flags.defaults rather than nil
Add check for conflicting flag definitions.