Skip to content

Commit

Permalink
Set escript main parameter
Browse files Browse the repository at this point in the history
If this parameter is not specified explicitly, erlfmt cannot be
installed under a non-standard name:

    % cp _build/release/bin/erlfmt erlfmt-1.5.0
    % ./erlfmt-1.5.0
    escript: exception error: undefined function 'erlfmt-1.5':main/1
    ...
  • Loading branch information
dmitrivereshchagin authored and michalmuskala committed Dec 16, 2024
1 parent 32b2f06 commit 4b1d58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{escript_name, erlfmt}.

{escript_emu_args, "%%! +sbtu +A0 -noinput -noshell -mode minimal\n"}.
{escript_emu_args, "%%! +sbtu +A0 -noinput -noshell -mode minimal -escript main erlfmt\n"}.

{minimum_otp_vsn, "21"}.

Expand Down

0 comments on commit 4b1d58c

Please sign in to comment.