<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39465 >

On 17/07/07, Christian Knoke <[EMAIL PROTECTED]> wrote:
>
> SVN 2.1.99 17 JUL 2007
>
> Look at the output:
>
> [EMAIL PROTECTED]:~$ LANG= civclient --help

 ...

>       --                Pass any following options to the UI.
>                         Try "civclient -- --help" for more.
> [EMAIL PROTECTED]:~$ LANG= civclient -- --help
> Report bugs at http://bugs.freeciv.org/.
>
> The second command doesn't do what it says, and the bug report address
> is hardly found by users.

 With this patch clients having no command line options say so. Bug
address is always last line to print (was first line in gui-sdl).
 For TRUNK and S2_1


 - ML

diff -Nurd -X.diff_ignore freeciv/client/gui-gtk-2.0/gui_main.c freeciv/client/gui-gtk-2.0/gui_main.c
--- freeciv/client/gui-gtk-2.0/gui_main.c	2007-08-04 00:29:08.000000000 +0300
+++ freeciv/client/gui-gtk-2.0/gui_main.c	2007-08-04 16:46:01.000000000 +0300
@@ -262,6 +262,8 @@
 static void print_usage(const char *argv0)
 {
   /* add client-specific usage information here */
+  fc_fprintf(stderr, _("This client has no special command line options");
+
   fc_fprintf(stderr, _("Report bugs at %s.\n"), BUG_URL);
 }
 
diff -Nurd -X.diff_ignore freeciv/client/gui-sdl/gui_main.c freeciv/client/gui-sdl/gui_main.c
--- freeciv/client/gui-sdl/gui_main.c	2007-08-04 00:29:09.000000000 +0300
+++ freeciv/client/gui-sdl/gui_main.c	2007-08-04 16:48:18.000000000 +0300
@@ -199,12 +199,13 @@
 static void print_usage(const char *argv0)
 {
   /* add client-specific usage information here */
-  fc_fprintf(stderr, _("Report bugs at %s.\n"), BUG_URL);
   fc_fprintf(stderr,
 	     _("  -f,  --fullscreen\tStart Client in Fullscreen mode\n"));
   fc_fprintf(stderr, _("  -e,  --eventthread\tInit Event Subsystem in "
 		       "other thread (only Linux and BeOS)\n"));
   fc_fprintf(stderr, _("  -t,  --theme THEME\tUse GUI theme THEME\n"));
+
+  fc_fprintf(stderr, _("Report bugs at %s.\n"), BUG_URL);
 }
 
 /**************************************************************************
diff -Nurd -X.diff_ignore freeciv/client/gui-xaw/gui_main.c freeciv/client/gui-xaw/gui_main.c
--- freeciv/client/gui-xaw/gui_main.c	2007-08-04 00:29:08.000000000 +0300
+++ freeciv/client/gui-xaw/gui_main.c	2007-08-04 16:48:10.000000000 +0300
@@ -242,6 +242,8 @@
 static void print_usage(const char *argv0)
 {
   /* add client-specific usage information here */
+  fc_fprintf(stderr, _("This client has no special command line options");
+
   fc_fprintf(stderr, _("Report bugs at %s.\n"), BUG_URL);
 }
 
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to