summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-07-24 13:21:02 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-07-24 13:21:02 +0900
commit132ef5e2244067c819c6700fb3e01283f570efd8 (patch)
treefbabf314107f559622721bcde888f82283e61571
parent9f9cd4c200ebe69f2cd8ee8ef463855409d7d3ea (diff)
elm test - expand --help to also do -h and -help
-rw-r--r--src/bin/elementary/test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/elementary/test.c b/src/bin/elementary/test.c
index a3e10f85fe..c6cd181ade 100644
--- a/src/bin/elementary/test.c
+++ b/src/bin/elementary/test.c
@@ -1316,7 +1316,9 @@ efl_main(void *data EINA_UNUSED,
1316 * ex: elementary_test "Box Vert 2" */ 1316 * ex: elementary_test "Box Vert 2" */
1317 if (eina_array_count(arge->argv) == 2) 1317 if (eina_array_count(arge->argv) == 2)
1318 { 1318 {
1319 if (!strcmp(eina_array_data_get(arge->argv, 1), "--help")) 1319 if ((!strcmp(eina_array_data_get(arge->argv, 1), "--help")) ||
1320 (!strcmp(eina_array_data_get(arge->argv, 1), "-help")) ||
1321 (!strcmp(eina_array_data_get(arge->argv, 1), "-h")))
1320 { 1322 {
1321 efl_loop_quit(ev->object, 1323 efl_loop_quit(ev->object,
1322 eina_value_string_init("Usages:\n" 1324 eina_value_string_init("Usages:\n"