Re: Using poptPrintHelp()
- From: "Andrew V. Samoilov" <kai cmail ru>
- To: Pavel Roskin <proski gnu org>
- Cc: mc-devel gnome org
- Subject: Re: Using poptPrintHelp()
- Date: Thu, 17 Oct 2002 10:09:04 +0300
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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]