cedric pushed a commit to branch enlightenment-0.17.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=ac26acd6bf8469ba6988cd4947fdd1f7c6d9ab4f

commit ac26acd6bf8469ba6988cd4947fdd1f7c6d9ab4f
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Mon May 18 14:41:45 2015 -0400

    Properly fix T2182 (add a --version option to enlightenment)
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/bin/e_main.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_main.c b/src/bin/e_main.c
index 6d9a0c4..c9f872d 100644
--- a/src/bin/e_main.c
+++ b/src/bin/e_main.c
@@ -1263,8 +1263,14 @@ _e_main_parse_arguments(int argc, char **argv)
           really_know = EINA_TRUE;
         else if (!strcmp(argv[i], "-locked"))
           locked = EINA_TRUE;
-       else if (!strcmp(argv[i], "-nopause"))
-         e_nopause = 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")))
@@ -1293,6 +1299,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);

-- 


Reply via email to