From 1b6aa2b23b865fd290ac7f3192c7b96c9f7669bc Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Thu, 2 Apr 2015 15:48:58 +0200 Subject: [PATCH] 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 87e69a55a3..728e5cae47 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);