File: help_output.patch

package info (click to toggle)
qstat 2.17-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,220 kB
  • sloc: ansic: 24,706; makefile: 86; perl: 78; sh: 62
file content (32 lines) | stat: -rw-r--r-- 1,283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Description: Fix some formatting issues with Qstat's help output
 The main motivation for this is to make the help output usable with
 help2man. Some harmonization fixes have been made to capitalization and
 usage of trailing dots.
Author: Jordi Mallach <jordi@debian.org>
Forwarded: no

Index: qstat/qstat.c
===================================================================
--- qstat.orig/qstat.c
+++ qstat/qstat.c
@@ -2607,9 +2607,10 @@ usage(char *msg, char **argv, char *a1)
 		fprintf(stderr, msg, a1);
 	}
 
+	printf( "%s -- Tool for querying gaming servers\n", argv[0]);
 	printf("Usage: %s ", argv[0]);
 	printf("[options] [-default server-type] [-cfg file] [-f file] [host[:port]] ...\n");
-	printf("Where host is an IP address or host name\n\n");
+	printf(" Where host is an IP address or host name\n\n");
 
 	printf("Configuration options:\n");
 	printf_opt("-cfg", "Read the extended types from given file not the default one");
@@ -2632,7 +2633,7 @@ usage(char *msg, char **argv, char *a1)
 	printf_opt("-default", "Set default server type");
 	printf("\n");
 
-	printf("-default\tset default server type:");
+	printf_opt("-default", "Set default server type:");
 	for (i = 0; i < n_server_types; i++) {
 		type = sorted_types[i];
 		printf(" %s", type->type_string);