Changeset 1585


Ignore:
Timestamp:
Mar 24, 2007, 9:23:24 AM (15 years ago)
Author:
joshe
Message:

Don't rely on on printf field numbers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r1515 r1585  
    265265        { NULL, 0, NULL, 0 }
    266266    };
    267     int opt;
     267    int          opt;
     268    const char * name;
    268269
    269270    *sendquit    = FALSE;
     
    271272
    272273    gtk_parse_args( &argc, &argv );
     274    name = g_get_prgname();
    273275
    274276    while( 0 <= ( opt = getopt_long( argc, argv, "hpqv", opts, NULL ) ) )
     
    285287            case 'h':
    286288                printf(
    287 _("usage: %1$s [-hpq] [files...]\n"
     289_("usage: %s [-hpq] [files...]\n"
    288290  "\n"
    289   "Transmission %2$s (r%3$d) http://transmission.m0k.org/\n"
     291  "Transmission %s (r%d) http://transmission.m0k.org/\n"
    290292  "A free, lightweight BitTorrent client with a simple, intuitive interface\n"
    291293  "\n"
    292294  "  -h --help    display this message and exit\n"
    293295  "  -p --paused  start with all torrents paused\n"
    294   "  -q --quit    request that the running %1$s instance quit\n"
     296  "  -q --quit    request that the running %s instance quit\n"
    295297  "\n"
    296   "Only one instance of %1$s may run at one time. Multiple\n"
     298  "Only one instance of %s may run at one time. Multiple\n"
    297299  "torrent files may be loaded at startup by adding them to the command\n"
    298   "line. If %1$s is already running, those torrents will be\n"
     300  "line. If %s is already running, those torrents will be\n"
    299301  "opened in the running instance.\n"),
    300                         g_get_prgname(), VERSION_STRING, VERSION_REVISION );
     302                        name, VERSION_STRING, VERSION_REVISION,
     303                        name, name, name );
    301304                exit(0);
    302305                break;
Note: See TracChangeset for help on using the changeset viewer.