[Bug 146914] method KCmdLineArgs::usage exit status from 254 to EXIT_SUCCESS

Matthew Woehlke mw_triad at users.sourceforge.net
Tue Dec 18 17:41:51 CET 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=146914         




------- Additional Comments From mw_triad users sourceforge net  2007-12-18 17:41 -------
Just my $0.02, but if you *asked* for --help, and it was displayed correctly, well... it successfully did what you asked. Whereas giving usage due to wrong arguments is of course different. Ditto with --version.

Obviously KDE is not a GNU project (although I guess one can argue that --help/--version probably came from GNU), but for what it's worth, the GNU coding standards (http://www.gnu.org/prep/standards/standards.html#g_t_002d_002dhelp and also previous entry for --version) require this behavior ("The standard --help option should output brief documentation for how to invoke the program, on standard output, then exit successfully").


More information about the Kdelibs-bugs mailing list