Pavel Roskin wrote:
> Hello!
> 
> 
>>I suggest that we change print_mc_usage() to use poptPrintHelp().  This is 
>>a standard popt function from src/popthelp.c, and it's already linked into 
>>the mc executable.
> 

Now it is in stream to use poptSetOtherOptionHelp() in print_mc_usage(), 
but this change requires massive po/*.po updates.

-
Regards,
Andrew V. Samoilov
--- main.c      Mon Oct 14 17:26:57 2002
+++ main.c-     Thu Oct  3 21:10:21 2002
@@ -2072,15 +2072,12 @@ init_sigchld (void)
 static void
 print_mc_usage (poptContext ctx, FILE * stream)
 {
-    int leftColWidth;
-    fprintf (stream,
-            _("Usage is:\n\n"
-              "mc [flags] [this_dir] [other_panel_dir]\n\n"));
+    poptSetOtherOptionHelp (ctx,
+                           _("[flags] [this_dir] [other_panel_dir]\n\n"));
 
     /* print help for options */
-    leftColWidth = poptPrintHelp (ctx, stream, 0);
-
-    fprintf (stream, "  %-*s   %s\n", leftColWidth, _("+number"),
+    fprintf (stream, "  %-*s   %s\n", poptPrintHelp (ctx, stream, 0),
+            _("+number"),
             _("Set initial line number for the internal editor"));
     fprintf (stream,
             _("\n"

Reply via email to