Skip Menu |

This queue is for tickets about the AppConfig CPAN distribution.

Report information
The Basics
Id: 48176
Status: new
Priority: 0/
Queue: AppConfig

People
Owner: Nobody in particular
Requestors: miguel [...] micovery.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.66
Fixed in: (no value)



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