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 committed Dec 6, 2024
1 parent 32b2f06 commit 30a7c8b
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 30a7c8b

Please sign in to comment.