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

Vlad Dumitrescu vladdu55@REDACTED
Thu Jul 29 13:05:41 CEST 2010


On Thu, Jul 29, 2010 at 12:58, Gleb Peregud <gleber.p@REDACTED> wrote:
> On Thu, Jul 29, 2010 at 12:41, Vlad Dumitrescu <vladdu55@REDACTED> wrote:
>> On Thu, Jul 29, 2010 at 12:30, Gleb Peregud <gleber.p@REDACTED> wrote:
>>> ~/test$ erl -noinput -s edoc file a.erl
>> Could it be because the argument a.erl is sent to edoc:file as an atom?
>
> According to erl(3) if using -run arguments are passed as strings and
> this does not work neither as shown in the first message. And it was
> working with -run in R12 and R13 well.

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")

regards,
Vlad


More information about the erlang-questions mailing list