This is inspired by this post:
Is there a way of finding allowed keyword arguments for a function (e.g.
bar) that passes its
kwargs to another function, such as
foo(;a=2,b=3) = a+b bar(;kwargs...) = foo(; kwargs...)
so that I can find that
kwargs should be
b ? This would certainly nice for a lot of documentation. I would love to have
julia> @doc bar No documentation found. bar is a Function. # 1 method for generic function "bar":  bar(; a, b) in Main ...
julia> allowedkwargs(bar) (:a,:b)
I know it can get awfully complicated, but nevertheless would be pretty handy in many cases.