]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - ggo.c
Provide "purpose" texts.
[paraslash.git] / ggo.c
diff --git a/ggo.c b/ggo.c
index d8d56c03faa42e86a0c2d7862adb72a0b4603f04..3a441db1fa42f16d701dfa7492cf4bbaf22744f9 100644 (file)
--- a/ggo.c
+++ b/ggo.c
@@ -41,6 +41,8 @@ void ggo_print_help(struct ggo_help *help, unsigned flags)
 
        if (flags & GPH_PRINT_NAME_VERSION)
                printf_or_die("%s\n", version_single_line(help->prefix));
+       if (help->purpose && (flags & GPH_PRINT_PURPOSE))
+               printf_or_die("\n%s\n", help->purpose);
        if (help->usage && (flags & GPH_PRINT_USAGE))
                printf_or_die("\n%s\n", help->usage);
        if (help->description && (flags & GPH_PRINT_DESCRIPTION))