Open caverna opened 6 years ago
Hi @caverna
I can't see your proposed "late-binding" being required in many scenarios, however it might be easy to add a generic func overload for the SetDefault method which can be alternatively used in your particular scenario.
So for example,
parser.Setup<DateTime>('l', "LastDate")
.Callback(value => _lastDate = value)
.SetDefault(() => _firstDate); // 'late binding' achieved using new overload
Hi! I have this situation:
The behaviour that I expect would be, when an user doesn't provide 'L', just get the 'D' value.
My current workaround is: