summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_getopt.c
diff options
context:
space:
mode:
authorDaniel Kolesa <quaker66@gmail.com>2014-01-15 20:22:27 +0000
committerDaniel Kolesa <quaker66@gmail.com>2014-01-15 20:22:27 +0000
commitd660dd12bbfb984a70375a0482b9252b82fb9695 (patch)
tree8ee0873264d6d2490a4dbe04e181dae148c55108 /src/lib/ecore/ecore_getopt.c
parent4ec00f8edc7b80d21ae7265820f68689660b586d (diff)
ecore_getopt: support for categories
Diffstat (limited to 'src/lib/ecore/ecore_getopt.c')
-rw-r--r--src/lib/ecore/ecore_getopt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_getopt.c b/src/lib/ecore/ecore_getopt.c
index 2af5d47183..b2195be085 100644
--- a/src/lib/ecore/ecore_getopt.c
+++ b/src/lib/ecore/ecore_getopt.c
@@ -629,6 +629,12 @@ _ecore_getopt_help_desc(FILE *fp,
629 int metavarlen = 3; 629 int metavarlen = 3;
630 int used; 630 int used;
631 631
632 if (desc->action == ECORE_GETOPT_ACTION_CATEGORY)
633 {
634 fprintf(fp, "\n%s\n", desc->help);
635 return;
636 }
637
632 arg_req = _ecore_getopt_desc_arg_requirement(desc); 638 arg_req = _ecore_getopt_desc_arg_requirement(desc);
633 if (arg_req != ECORE_GETOPT_DESC_ARG_REQUIREMENT_NO) 639 if (arg_req != ECORE_GETOPT_DESC_ARG_REQUIREMENT_NO)
634 _ecore_getopt_help_desc_setup_metavar 640 _ecore_getopt_help_desc_setup_metavar