Subject: | Variables not being created when using AppConfig::Args |
The behavior of AppConfig::Args module does not match what the
documentation states.
If you create a state with { GLOBAL=>{CREATE=>1} }, then variables that
are not defined should be created automagically. (If I understand correctly)
When using AppConfig::File::parse, the behavior is correct.
However, when using AppConfig:Args::parse the behavior is incorrect.
I fixed this myself locally by changing AppConfig/Args.pm:96
from
if ($state->_exists($variable)) {
to
if ($state->_exists($variable) || $state->set($variable) )
I am not sure if this is the best way to solve the problem. I just did
it that way based on how you did it on File.pm