Skip to content

Commit

Permalink
[#1149] Exit with 0 on --version
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoaloi committed Dec 1, 2021
1 parent cd050eb commit 1b686f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/els_lsp/src/erlang_ls.erl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ parse_args(Args) ->
case getopt:parse(opt_spec_list(), Args) of
{ok, {[version | _], _BadArgs}} ->
print_version(),
halt(1);
halt(0);
{ok, {ParsedArgs, _BadArgs}} ->
set_args(ParsedArgs);
{error, {invalid_option, _}} ->
Expand Down

0 comments on commit 1b686f4

Please sign in to comment.