Closed ftesser closed 3 years ago
Sorry about the remaining issue(s). I'm not sure when I'll be able to work on this. In the mean time, a PR to fix it would be appreciated.
Hello @bw2, I have just sent a PR that fix the second part of this issue (the reading from config file).
The problem that the default arguments are not saved in the config file is still there, but for this problem it might be better to open a separate issue, because I see that this problem is not related only to action=BooleanOptionalAction but also to action = " store_true ". I think that perhaps the _writing_out_config_file function was designed like that (do not save the default arguments).
Close the issue after merging #248
Following #239, I just tested the new release (ConfigArgParse 1.5.2), using the same code reported in #239: now there is not the error reported in #239 (thanks!), but the functionality is not as I expected.
The issues are:
False
is not taken into consideration and the config.conf is empty:the config file correctly contains some info about foo (true), but this is not readable from the parser, in fact parsing this config file return the default foo = False and not the True value contained in the file:
Any idea of how to manage that?