Skip to content

Conversation

@domingo2000
Copy link

Solves #309

Added the cache options to the configuration file as requested in that issue.

  1. If given no configuration of cache in file nor in command line options behave as actual implementation
  2. If given configuration in the file the cache options are set, but can be overrided if given in the CLI command line options

So this is usefull to not have to put the command line options all the time when running the command.


cache_dir = @options[:cache_dir]
if cache? && autocorrect?
failure!("cannot run autocorrect mode with cache")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not fail here. It was a bit annoying when options were passed on the command line but with the options in the config file, it will be even less easy to get out of the problem.
The cache shouldn't be enabled, and we should also handle the clear cache option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants