From 0e1177cb791561bda2a967d8c8dd42a1dc061cef Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 27 Sep 2019 07:02:03 +0200 Subject: Fix version --- main.c | 3 +-- main.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 70c007f..f00321a 100755 --- a/main.c +++ b/main.c @@ -155,9 +155,8 @@ int main(int argc, char* argv[]){ switch (c) { case 'v': - if( !strcmp(optlv[optIndex].name, "version") ) { puts( VERSION_METAG ); - } + return EXIT_SUCCESS; break; case 'h': diff --git a/main.h b/main.h index 67a28ff..a48572e 100644 --- a/main.h +++ b/main.h @@ -75,7 +75,7 @@ void fail_exit(const char *msg); _a > _b ? _a : _b; }) -#define VERSION_METAG "Alpha" +#define VERSION_METAG "0.2" #define HELP_STRING_METAG "Utilisation : metag [OPTION]..." "\n"\ "Editeur de tag mp3" "\n"\ "Options :" "\n"\ -- cgit v1.2.3