Closed antonag32 closed 1 year ago
Set as Draft since I still need to write unit tests for it.
Added unit tests, which are failing. Need to trace the issue since initial debugging shows that enable and disable settings are the same on their equivalent CLI tests (without using a config file) so it is weird that the expected errors are diffeerent.
Issue is caused by file writing. Previous contents mash up with new ones whenever the new content is shorter.
For example:
First write: longwrite
Second write: short
write
part is not overwritten so end result is shortwrite
.
Fixes #37
Argument parser was subclassed in order to hook into the
parse_args
method without disrupting the existing code flow. All code downstream does not even know of the existence of a config file and just gets theenable
,disable
options as they did before.