edje_cc: Add options -V/--version to show edje_cc version.

Requested to ease debugging on deployments.

Fixes T2213
This commit is contained in:
Stefan Schmidt 2015-04-02 15:48:58 +02:00
parent 0774045511
commit 1b6aa2b23b
1 changed files with 6 additions and 0 deletions

View File

@ -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);