elm test - expand --help to also do -h and -help

This commit is contained in:
Carsten Haitzler 2018-07-24 13:21:02 +09:00
parent 9f9cd4c200
commit 132ef5e224
1 changed files with 3 additions and 1 deletions

View File

@ -1316,7 +1316,9 @@ efl_main(void *data EINA_UNUSED,
* ex: elementary_test "Box Vert 2" */
if (eina_array_count(arge->argv) == 2)
{
if (!strcmp(eina_array_data_get(arge->argv, 1), "--help"))
if ((!strcmp(eina_array_data_get(arge->argv, 1), "--help")) ||
(!strcmp(eina_array_data_get(arge->argv, 1), "-help")) ||
(!strcmp(eina_array_data_get(arge->argv, 1), "-h")))
{
efl_loop_quit(ev->object,
eina_value_string_init("Usages:\n"