From 27a11e0c469a3e94b512a67060f9d50323b55de2 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 18 May 2015 14:41:45 -0400 Subject: [PATCH] Properly fix T2182 (add a --version option to enlightenment) Signed-off-by: Chris Michael --- src/bin/e_main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bin/e_main.c b/src/bin/e_main.c index a753346eb..8812d02ac 100644 --- a/src/bin/e_main.c +++ b/src/bin/e_main.c @@ -1170,6 +1170,12 @@ _e_main_parse_arguments(int argc, char **argv) locked = EINA_TRUE; else if (!strcmp(argv[i], "-nopause")) e_nopause = EINA_TRUE; + else if ((!strcmp(argv[i], "-version")) || + (!strcmp(argv[i], "--version"))) + { + printf(_("Version: %s\n"), PACKAGE_VERSION); + _e_main_shutdown(-1); + } else if ((!strcmp(argv[i], "-h")) || (!strcmp(argv[i], "-help")) || (!strcmp(argv[i], "--help"))) @@ -1198,6 +1204,7 @@ _e_main_parse_arguments(int argc, char **argv) "\t\tStart with desklock on, so password will be asked.\n" "\t-i-really-know-what-i-am-doing-and-accept-full-responsibility-for-it\n" "\t\tIf you need this help, you don't need this option.\n" + "\t-version\n" ) ); _e_main_shutdown(-1);