fabric/fabric — pull request #922 by kevinjqiu (2013-06-27 20:23:51+00:00)
Title: Show detailed task signature

Currently, running `fab -d ` shows only the docstring. Sometimes, if the task takes arguments, merely listing what's in the docstring isn't enough. You can always read the function definition in the fabfile, but if the fabfile exports tasks from another module, you will have to trace to that module to find the definition.

This PR spares you of all that trouble by making the signature, as well as any information of default arguments available to you through `fab -d `. This works on old style tasks, decorated tasks and class-based tasks.