stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=07740455116f98dce86c3df743a9b4b3c0d03ee6

commit 07740455116f98dce86c3df743a9b4b3c0d03ee6
Author: Stefan Schmidt <[email protected]>
Date:   Thu Apr 2 15:40:05 2015 +0200

    eet: Add options -V/--version to show eet version.
    
    Requested to ease debugging on deployments.
    
    ref T2213
---
 src/bin/eet/eet_main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/eet/eet_main.c b/src/bin/eet/eet_main.c
index 6586aef..09ab935 100644
--- a/src/bin/eet/eet_main.c
+++ b/src/bin/eet/eet_main.c
@@ -463,6 +463,7 @@ help:
           "  eet -s FILE.EET PRIVATE_KEY PUBLIC_KEY             sign FILE.EET 
with PRIVATE_KEY and attach PUBLIC_KEY as it's certificate\n"
           "  eet -t FILE.EET                                    give some 
statistic about a file\n"
           "  eet -h                                             print out this 
help message\n"
+          "  eet -V [--version]                                 show program 
version\n"
           );
         eet_shutdown();
         return -1;
@@ -470,6 +471,8 @@ help:
 
    if ((!strncmp(argv[1], "-h", 2)))
      goto help;
+   else if ((!strncmp(argv[1], "-V", 2)) || (!strncmp(argv[1], "--version",9 
)))
+     printf("Version: %s\n", PACKAGE_VERSION);
    else if (((!strcmp(argv[1], "-l")) || (!strcmp(argv[1], "-v"))) && (argc > 
2))
      {
         if (argc == 3)

-- 


Reply via email to