I would like to write something that looks at a function’s method signatures and builds a command-line interface based on that. I realize it is easy to get a function’s definition with a macro, but I don’t know if there is a way to do it after the function already exists.
I know Julia has this somehow internally because of the
methods function, but I don’t know how to get at it. If there’s no way, I guess I’ll settle for the macro approach, but I’d like to do it a little fancier.