bmwcarit/Emma

Reset config behaviour

Closed this issue · 1 comments

Use -r to reset the config:

  • First time you start the script with or without a path (so either you get prompted or provide the path via command line arg) the config file will be created; *What we still need is an info saying: this path will be from now on used for further runs if not stated"
  • Afterwards it does not prompt until you specify a new path; Config will be updated accordingly; Important is that you cannot just delete and recreate the file but you have to update it in case we will have more options in the future
  • -r will now reset the config meaning the config file will be deleted
  • Alternatively we could remove the -r option and let the user delete the file by hand if neccesary

The file modification will be skipped for now. In the future this could be done by updating and rewriting a JSON file (-> dict). fyi @DariaPigasova