diff --git a/.gitignore b/.gitignore index 3b7e0f70..481e175e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ target __pycache__ .vscode -.idea \ No newline at end of file +.idea +.DS_Store \ No newline at end of file diff --git a/teos/src/config.rs b/teos/src/config.rs index 5436725f..36e07d88 100644 --- a/teos/src/config.rs +++ b/teos/src/config.rs @@ -203,6 +203,12 @@ impl Config { self.tor_support |= options.tor_support; self.debug |= options.debug; self.deps_debug |= options.deps_debug; + if self.overwrite_key { + panic!("The 'overwrite_key' parameter cannot be set in the configuration file. Please pass it as a command-line argument if necessary."); + } + if self.force_update { + panic!("The 'force_update' parameter cannot be set in the configuration file. Please pass it as a command-line argument if necessary."); + } self.overwrite_key = options.overwrite_key; self.force_update = options.force_update; }