jsahlen/todotxt — pull request #6 by berkes (2013-02-11 11:27:00+00:00)
Title: Backwards compatibility checks for incompatible settings

I found a bug in my previous commit.

With the new config file, you can give a --file option to tell what file to work on. This fails when using the old style config, since that has no files. I now throw an error when someone tries to define a --file=foo but is using the old config.

The method that should test this, was not used. It is removed and refactored into the Config model, which is where it should have been.

I am now fixing some more issues with the --files which are slightly unrelated. This will be a separate pull-request.