summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2015-04-02 15:48:58 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2015-04-02 15:52:06 +0200
commit1b6aa2b23b865fd290ac7f3192c7b96c9f7669bc (patch)
treed947b6937f2c165c1c8291ecdf1bc2cf9c95e286 /src/bin
parent07740455116f98dce86c3df743a9b4b3c0d03ee6 (diff)
edje_cc: Add options -V/--version to show edje_cc version.
Requested to ease debugging on deployments. Fixes T2213
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/edje/edje_cc.c6
1 files changed, 6 insertions, 0 deletions
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)
115 "-fastdecomp Use a faster decompression algorithm (LZ4HC) (mutually exclusive with -fastcomp)\n" 115 "-fastdecomp Use a faster decompression algorithm (LZ4HC) (mutually exclusive with -fastcomp)\n"
116 "-threads Compile the edje file using multiple parallel threads (by default)\n" 116 "-threads Compile the edje file using multiple parallel threads (by default)\n"
117 "-nothreads Compile the edje file using only the main loop\n" 117 "-nothreads Compile the edje file using only the main loop\n"
118 "-V [--version] show program version\n"
118 ,progname); 119 ,progname);
119} 120}
120 121
@@ -161,6 +162,11 @@ main(int argc, char **argv)
161 main_help(); 162 main_help();
162 exit(0); 163 exit(0);
163 } 164 }
165 else if ((!strcmp(argv[i], "-V")) || (!strcmp(argv[i], "--version")))
166 {
167 printf("Version: %s\n", PACKAGE_VERSION);
168 exit(0);
169 }
164 else if (!strcmp(argv[i], "-v")) 170 else if (!strcmp(argv[i], "-v"))
165 { 171 {
166 eina_log_domain_level_set("edje_cc", EINA_LOG_LEVEL_INFO); 172 eina_log_domain_level_set("edje_cc", EINA_LOG_LEVEL_INFO);