[erlang-questions] Edoc crashes when called from command line

Gleb Peregud <>
Thu Jul 29 13:18:48 CEST 2010

On Thu, Jul 29, 2010 at 13:05, Vlad Dumitrescu <> wrote:
> Yes, but the docs say that the specified function "is assumed to be of
> arity 1, taking the list [Arg1,Arg2,...] as argument", so you get
>      edoc:file(["a.erl"])
> instead of
>      edoc:file("a.erl")

Yes, you are right. I've missed this (RTM FTW). But it looks like
either edoc:file/1 definition has changed or 'erl -run' behaviour has
changed, since it was working previously for me.

A quick and easy solution is to use:

    erl -run edoc files a.erl

Vlad, thanks for pointing this out.


More information about the erlang-questions mailing list