stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1b6aa2b23b865fd290ac7f3192c7b96c9f7669bc

commit 1b6aa2b23b865fd290ac7f3192c7b96c9f7669bc
Author: Stefan Schmidt <s.schm...@samsung.com>
Date:   Thu Apr 2 15:48:58 2015 +0200

    edje_cc: Add options -V/--version to show edje_cc version.
    
    Requested to ease debugging on deployments.
    
    Fixes T2213
---
 src/bin/edje/edje_cc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bin/edje/edje_cc.c b/src/bin/edje/edje_cc.c
index 87e69a5..728e5ca 100644
--- a/src/bin/edje/edje_cc.c
+++ b/src/bin/edje/edje_cc.c
@@ -115,6 +115,7 @@ main_help(void)
       "-fastdecomp              Use a faster decompression algorithm (LZ4HC) 
(mutually exclusive with -fastcomp)\n"
       "-threads                 Compile the edje file using multiple parallel 
threads (by default)\n"
       "-nothreads               Compile the edje file using only the main 
loop\n"
+      "-V [--version]           show program version\n"
       ,progname);
 }
 
@@ -161,6 +162,11 @@ main(int argc, char **argv)
             main_help();
             exit(0);
          }
+       else if ((!strcmp(argv[i], "-V")) || (!strcmp(argv[i], "--version")))
+         {
+            printf("Version: %s\n", PACKAGE_VERSION);
+            exit(0);
+         }
        else if (!strcmp(argv[i], "-v"))
          {
             eina_log_domain_level_set("edje_cc", EINA_LOG_LEVEL_INFO);

-- 


Reply via email to