about summary refs log tree commit diff
path: root/argp
diff options
context:
space:
mode:
Diffstat (limited to 'argp')
-rw-r--r--argp/argp-help.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/argp/argp-help.c b/argp/argp-help.c
index da6c147c30..cd54efcffe 100644
--- a/argp/argp-help.c
+++ b/argp/argp-help.c
@@ -458,6 +458,7 @@ hol_add_cluster (struct hol *hol, int group, const char *header, int index,
       cl->index = index;
       cl->parent = parent;
       cl->argp = argp;
+      cl->depth = parent ? parent->depth + 1 : 0;
 
       cl->next = hol->clusters;
       hol->clusters = cl;