Skip to content

Commit

Permalink
Merge pull request #1150 from erlang-ls/1149-version-should-exit-0
Browse files Browse the repository at this point in the history
[#1149] Exit with 0 on --version
  • Loading branch information
robertoaloi committed Dec 1, 2021
2 parents 210b871 + 1b686f4 commit 77f26e8
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 77f26e8

Please sign in to comment.