Skip to content
Browse files

Fix case where erldocs is called with just a destination

  • Loading branch information...
1 parent acdf113 commit 6e408cdd7c00495e5a55fd93a7c4d12ad7281818 @dreverri dreverri committed Nov 28, 2010
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/erldocs.erl
View
7 src/erldocs.erl
@@ -4,12 +4,11 @@
%% @doc Called automatically by escript
-spec main(list()) -> ok.
main([]) ->
- {ok, CWD} = file:get_cwd(),
- Conf = [{apps, [CWD]}, {dest, "doc/erldocs"}],
- run(Conf);
+ main(["docs/erldocs"]);
main([Dest]) ->
- Conf = [{apps, ["."]}, {dest, Dest}],
+ {ok, CWD} = file:get_cwd(),
+ Conf = [{apps, [CWD]}, {dest, Dest}],
run(Conf);
main(Args) ->

0 comments on commit 6e408cd

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