X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Famtrmidx.c;h=a2f4c8be1b827b386fe86a38046d2aff0600dd24;hb=e676d2a937a46194f0bd97a130ae1a4138e8b4e9;hp=25f7f3efe35b48a81f9b3492c7cf868b293bd46c;hpb=99080c663209a733fd597a2fcab96a45c9c41291;p=debian%2Famanda diff --git a/server-src/amtrmidx.c b/server-src/amtrmidx.c index 25f7f3e..a2f4c8b 100644 --- a/server-src/amtrmidx.c +++ b/server-src/amtrmidx.c @@ -70,6 +70,11 @@ main( int amtrmidx_debug = 0; config_overrides_t *cfg_ovr = NULL; + if (argc > 1 && argv && argv[1] && g_str_equal(argv[1], "--version")) { + printf("amtrmidx-%s\n", VERSION); + return (0); + } + /* * Configure program for internationalization: * 1) Only set the message locale for now.