First I want to say the answer is not about something like optional or present.
I want to define a function that looks like write(*,*) .... As we see, the number of input variants can be arbitrary. If we use the optional keyword, we need to define all the possible inputs. Assume that we have 1000 (possible) inputs, what can we do?