summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2015-04-02 15:40:05 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2015-04-02 15:40:05 +0200
commit07740455116f98dce86c3df743a9b4b3c0d03ee6 (patch)
tree5edf7b88589ccff98975851bf2074cc7a02d93db /src
parent3d5357b6ab4c33608ef9e4731bc766fc57ff01fd (diff)
eet: Add options -V/--version to show eet version.
Requested to ease debugging on deployments. ref T2213
Diffstat (limited to 'src')
-rw-r--r--src/bin/eet/eet_main.c3
1 files changed, 3 insertions, 0 deletions
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:
463 " eet -s FILE.EET PRIVATE_KEY PUBLIC_KEY sign FILE.EET with PRIVATE_KEY and attach PUBLIC_KEY as it's certificate\n" 463 " eet -s FILE.EET PRIVATE_KEY PUBLIC_KEY sign FILE.EET with PRIVATE_KEY and attach PUBLIC_KEY as it's certificate\n"
464 " eet -t FILE.EET give some statistic about a file\n" 464 " eet -t FILE.EET give some statistic about a file\n"
465 " eet -h print out this help message\n" 465 " eet -h print out this help message\n"
466 " eet -V [--version] show program version\n"
466 ); 467 );
467 eet_shutdown(); 468 eet_shutdown();
468 return -1; 469 return -1;
@@ -470,6 +471,8 @@ help:
470 471
471 if ((!strncmp(argv[1], "-h", 2))) 472 if ((!strncmp(argv[1], "-h", 2)))
472 goto help; 473 goto help;
474 else if ((!strncmp(argv[1], "-V", 2)) || (!strncmp(argv[1], "--version",9 )))
475 printf("Version: %s\n", PACKAGE_VERSION);
473 else if (((!strcmp(argv[1], "-l")) || (!strcmp(argv[1], "-v"))) && (argc > 2)) 476 else if (((!strcmp(argv[1], "-l")) || (!strcmp(argv[1], "-v"))) && (argc > 2))
474 { 477 {
475 if (argc == 3) 478 if (argc == 3)