]> git.tuebingen.mpg.de Git - adu.git/blobdiff - adu.c
Fix return codes for loop functions.
[adu.git] / adu.c
diff --git a/adu.c b/adu.c
index 8ce7317cdd207719f924523a0d7aa5ca32fcf288..b3ec80e2377c49e8df37ee2288530212a0e200fa 100644 (file)
--- a/adu.c
+++ b/adu.c
@@ -1,3 +1,4 @@
+/** \file adu.c The main functions used by all modes of operation. */
 #include "adu.h"
 #include <dirent.h> /* readdir() */
 #include <pwd.h>
@@ -178,7 +179,7 @@ static struct osl_column_description user_table_cols[] = {
  * The log function.
  *
  * \param ll Loglevel.
- * \param fml Usual format string.
+ * \param fmt Usual format string.
  *
  * All XXX_LOG() macros use this function.
  */
@@ -473,25 +474,26 @@ static int print_complete_help_and_die(void)
        const char **line;
        select_cmdline_parser_init(&select_conf);
 
+       printf("%s-%s\n", CMDLINE_PARSER_PACKAGE, CMDLINE_PARSER_VERSION);
+       printf("%s\n\n", gengetopt_args_info_purpose);
+       printf("%s\n\n", gengetopt_args_info_usage);
+
        if (conf.help_given)
                line = gengetopt_args_info_help;
        else
                line = gengetopt_args_info_detailed_help;
-
-       printf("adu command line options:\n");
-       printf("=========================\n");
        for (; *line; line++)
                printf("%s\n", *line);
+
        if (conf.help_given)
                line = select_args_info_help;
        else
                line  = select_args_info_detailed_help;
-       printf("select options:\n");
-       printf("===============\n");
+       printf("Select options:\n");
        for (; *line; line++)
                printf("%s\n", *line);
-       printf("interactive commands:\n");
-       printf("=====================\n");
+
+       printf("Interactive commands:\n");
        print_interactive_help();
        exit(EXIT_FAILURE);
 }