… | |
… | |
220 | * we already sent a message, we just exit with a helpful hint. |
220 | * we already sent a message, we just exit with a helpful hint. |
221 | */ |
221 | */ |
222 | static void __attribute__ ((__noreturn__)) parse_error(const char *message) |
222 | static void __attribute__ ((__noreturn__)) parse_error(const char *message) |
223 | { |
223 | { |
224 | if (message) |
224 | if (message) |
225 | fprintf(stderr, "%s: %s\n", ,program_short_invocation_name, message); |
225 | fprintf(stderr, "%s: %s\n", program_invocation_short_name, message); |
226 | fprintf(stderr, _("Try `%s --help' for more information.\n"), |
226 | fprintf(stderr, _("Try `%s --help' for more information.\n"), |
227 | program_invocation_short_name); |
227 | program_invocation_short_name); |
228 | exit(PARAMETER_EXIT_CODE); |
228 | exit(PARAMETER_EXIT_CODE); |
229 | } |
229 | } |
230 | |
230 | |
… | |
… | |
360 | {"alternative", no_argument, NULL, 'a'}, |
360 | {"alternative", no_argument, NULL, 'a'}, |
361 | {"name", required_argument, NULL, 'n'}, |
361 | {"name", required_argument, NULL, 'n'}, |
362 | {"version", no_argument, NULL, 'V'}, |
362 | {"version", no_argument, NULL, 'V'}, |
363 | {NULL, 0, NULL, 0} |
363 | {NULL, 0, NULL, 0} |
364 | }; |
364 | }; |
365 | #if WITHOUT_GETTEXT |
|
|
366 | #else |
|
|
367 | setlocale(LC_ALL, ""); |
365 | setlocale(LC_ALL, ""); |
368 | bindtextdomain(PACKAGE, LOCALEDIR); |
366 | bindtextdomain(PACKAGE, LOCALEDIR); |
369 | textdomain(PACKAGE); |
367 | textdomain(PACKAGE); |
370 | #endif |
|
|
371 | |
368 | |
372 | init_longopt(); |
369 | init_longopt(); |
373 | getopt_long_fp = getopt_long; |
370 | getopt_long_fp = getopt_long; |
374 | |
371 | |
375 | if (getenv("GETOPT_COMPATIBLE")) |
372 | if (getenv("GETOPT_COMPATIBLE")) |