Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix case where erldocs is called with just a destination

  • Loading branch information...
commit 6e408cdd7c00495e5a55fd93a7c4d12ad7281818 1 parent acdf113
Daniel Reverri dreverri authored

Showing 1 changed file with 3 additions and 4 deletions. Show diff stats Hide diff stats

  1. +3 4 src/erldocs.erl
7 src/erldocs.erl
@@ -4,12 +4,11 @@
4 4 %% @doc Called automatically by escript
5 5 -spec main(list()) -> ok.
6 6 main([]) ->
7   - {ok, CWD} = file:get_cwd(),
8   - Conf = [{apps, [CWD]}, {dest, "doc/erldocs"}],
9   - run(Conf);
  7 + main(["docs/erldocs"]);
10 8
11 9 main([Dest]) ->
12   - Conf = [{apps, ["."]}, {dest, Dest}],
  10 + {ok, CWD} = file:get_cwd(),
  11 + Conf = [{apps, [CWD]}, {dest, Dest}],
13 12 run(Conf);
14 13
15 14 main(Args) ->

0 comments on commit 6e408cd

Please sign in to comment.
Something went wrong with that request. Please try again.