forked from enlightenment/efl
a small ecore_getopt bugfix
This commit is contained in:
parent
f5c125dfc2
commit
f2c9fcf5f1
|
@ -641,7 +641,8 @@ _ecore_getopt_help_desc_categories(FILE *fp,
|
|||
|
||||
/* do not print available categories if none available */
|
||||
for (; !_ecore_getopt_desc_is_sentinel(desc); desc++)
|
||||
if (desc->action == ECORE_GETOPT_ACTION_CATEGORY) goto hascat;
|
||||
if (desc->action == ECORE_GETOPT_ACTION_CATEGORY && desc->longname)
|
||||
goto hascat;
|
||||
|
||||
return _ecore_getopt_help_line(fp, base, total, used,
|
||||
_("No categories available."),
|
||||
|
|
Loading…
Reference in New Issue