elementary: use the new exit infrastructure to print help message.

This commit is contained in:
Cedric Bail 2017-10-27 15:44:21 -07:00
parent 0764ee8145
commit a14b657399
1 changed files with 7 additions and 7 deletions

View File

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