Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix escript when used with no arguments

  • Loading branch information...
commit 4389638cbef249255dbe2890529f448c2dd046da 1 parent 32a2790
@dreverri dreverri authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/erldocs.erl
View
3  src/erldocs.erl
@@ -4,7 +4,8 @@
%% @doc Called automatically by escript
-spec main(list()) -> ok.
main([]) ->
- Conf = [{apps, ["."]}, {dest, "doc/erldocs"}],
+ {ok, CWD} = file:get_cwd(),
+ Conf = [{apps, [CWD]}, {dest, "doc/erldocs"}],
run(Conf);
main([Dest]) ->
Please sign in to comment.
Something went wrong with that request. Please try again.