From 1c2be475ad09af18e632609c779d508e7fb866f9 Mon Sep 17 00:00:00 2001 From: AnErrupTion Date: Thu, 15 Jun 2023 09:30:09 +0200 Subject: [PATCH] Exit when asking for version --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 162aea17..8109ccfc 100644 --- a/src/main.c +++ b/src/main.c @@ -38,6 +38,7 @@ void arg_help(void* data, char** pars, const int pars_count) void arg_version(void* data, char** pars, const int pars_count) { printf("Ly version %s\n", LY_VERSION); + exit(0); } // low-level error messages