diff options
author | Cedric Bail <cedric@osg.samsung.com> | 2017-10-27 15:44:21 -0700 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-10-30 15:52:44 +0900 |
commit | 5c3ae53941e84dead33aafcd10c829d9bb84239e (patch) | |
tree | 3f9fcde258338aad54f8d1e2713196cf4401a2a5 | |
parent | b1141cdc14aca45c0bf00020adabf6f06c3b2d32 (diff) | |
download | efl-5c3ae53941e84dead33aafcd10c829d9bb84239e.tar.gz |
elementary: use the new exit infrastructure to print help message.
-rw-r--r-- | src/bin/elementary/test.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/elementary/test.c b/src/bin/elementary/test.c index 14fa889a66..7b47e3c01f 100644 --- a/src/bin/elementary/test.c +++ b/src/bin/elementary/test.c @@ -1222,13 +1222,13 @@ efl_main(void *data EINA_UNUSED, { if (!strcmp(eina_array_data_get(arge->argv, 0), "--help")) { - printf("Usages:\n" - "$ elementary_test\n" - "$ elementary_test --test-win-only [TEST_NAME]\n" - "$ elementary_test -to [TEST_NAME]\n\n" - "Examples:\n" - "$ elementary_test -to Button\n\n"); - efl_loop_quit(ev->object, 1); + efl_loop_quit(ev->object, + eina_value_string_init("Usages:\n" + "$ elementary_test\n" + "$ elementary_test --test-win-only [TEST_NAME]\n" + "$ elementary_test -to [TEST_NAME]\n\n" + "Examples:\n" + "$ elementary_test -to Button\n\n")); return ; } autorun = eina_array_data_get(arge->argv, 0); |