wordfence-cli icon indicating copy to clipboard operation
wordfence-cli copied to clipboard

Preserve comments in existing INI files when configure command is invoked

Open ewodrich opened this issue 2 years ago • 1 comments

Currently any custom comments added to the wordfence-cli.ini file are overwritten when a wordfence configure command is invoked. Add the ability to preserve comments in the INI files. May want to consider prompting the user if they want to preserve the comments in the event the comments are no longer relevant with the new configuration.

ewodrich avatar Nov 06 '23 17:11 ewodrich

We are using Python's built-in configparser library to read/write INI files at present. It does not support preserving comments. We'll need to switch to another library in order to implement this change.

akenion avatar Nov 22 '23 21:11 akenion