# How many ways can QuantLib handle the price of option on its maturity date?

I have been playing with QuantLib for some time. This is a great framework with amazing design and capabilities. However, one thing that I find hard to understand is the way it handles the price of option on maturity date. As far as I understand, it simply equates option price to zero on maturity date. However, I find this behavior is kind of awkward in some certain situations. Will it be better off if the framework figures out something else, e.g. the intrinsic value of the option on the maturity date, rather than just a zero.

So my question is is there any globe settings can be used to override this behavior?

If the answer is yes, please kindly instruct how to do it? If no, please kindly explain the reason behind this?

Settings::instance().includeReferenceDateEvents() = true;

After the above, the option will be considered alive at exercise date. I'm not sure that all pricing engines will manage the case $T=0$ correctly (they might), but I checked that at least AnalyticEuropeanEngine does and will return the intrinsic value.