It's an anonymous function, the parameters are passed on call. But I guess the name is confusing.

guardedGenerate(() => generate(message, flags))