]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
comsetics: some updates to --help output.
authorAdam Sutton <dev@adamsutton.me.uk>
Fri, 15 Feb 2013 11:29:00 +0000 (11:29 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Fri, 15 Feb 2013 11:29:00 +0000 (11:29 +0000)
Changes are based on suggestions from Vuolter <vuolter@gmail.com>

src/main.c

index c5c8b8e57397083c4d75241a23029de0e7c4c7eb..33db93b746ee6e1cdd1002b4e8b9952937786c67 100644 (file)
@@ -257,8 +257,7 @@ show_usage
 {
   int i;
   char buf[256];
-  printf("Usage :- %s [options]\n\n", argv0);
-  printf("Options\n");
+  printf("Usage: %s [OPTIONS]\n", argv0);
   for (i = 0; i < num; i++) {
 
     /* Section */
@@ -271,14 +270,14 @@ show_usage
       char sopt[4];
       char *desc, *tok;
       if (opts[i].sopt)
-        snprintf(sopt, sizeof(sopt), "-%c/", opts[i].sopt);
+        snprintf(sopt, sizeof(sopt), "-%c,", opts[i].sopt);
       else
-        sopt[0] = 0;
-      snprintf(buf, sizeof(buf), "  %s--%s", sopt, opts[i].lopt);
+        strcpy(sopt, "   ");
+      snprintf(buf, sizeof(buf), "  %s --%s", sopt, opts[i].lopt);
       desc = strdup(opts[i].desc);
       tok  = strtok(desc, "\n");
       while (tok) {
-        printf("%s\t\t%s\n", buf, tok);
+        printf("%-30s%s\n", buf, tok);
         tok = buf;
         while (*tok) {
           *tok = ' ';
@@ -290,8 +289,8 @@ show_usage
     }
   }
   printf("\n");
-  printf("For more information read the man page or visit\n");
-  printf(" http://www.lonelycoder.com/hts/\n");
+  printf("For more information please visit the Tvheadend website:\n");
+  printf("  http://www.lonelycoder.com/tvheadend/\n");
   printf("\n");
   exit(0);
 }