Home

Awesome

Erlang autohelp parse_transform

This parse_transform makes your code self-descriptive. When you add @doc annotation for module or function, it goes to EDoc's output. With autohelp you can view it using Module:help functions:

All output goes to stdout (it is designed to look well in shell), return values are ok.

Usage

Just add compile option to your code:

-compile({parse_transform, autohelp}).

After that functions help/0, help/1, help/2 will be added to your module.