|
From: | shishi-commit |
Subject: | Fix exit codes. |
Date: | Thu, 11 Dec 2003 06:42:48 +0100 |
Commit from jas | 2003-12-11 06:42 CET |
Fix exit codes.
Module | File name | Revision | |||
---|---|---|---|---|---|
shishi | src/shishid.c | 1.66 | >>> | 1.67 |
shishi/src/shishid.c 1.66 >>> 1.67 |
---|
Line 1286 |
textdomain (PACKAGE); set_program_name (argv[0]); |
- if (cmdline_parser (argc, argv, &arg) != 0) - { - error (1, 0, "Try `%s --help' for more information.", argv[0]); - return 1; - } |
+ if (cmdline_parser (argc, argv, &args_info) != 0) + error (EXIT_FAILURE, 0, "Try `%s --help' for more information.", + program_name); |
if (arg.help_given) { |
Line 1298 |
printf ("\nMandatory arguments to long options are " "mandatory for short options too.\n\n"); printf ("Report bugs to <%s>.\n", PACKAGE_BUGREPORT); |
- return 1; |
+ return EXIT_SUCCESS; |
} if (!arg.configuration_file_arg) |
[Prev in Thread] | Current Thread | [Next in Thread] |