GNOME Bugzilla – Bug 702809
gnome-font-viewer doesn't support the standard --help and --version options
Last modified: 2014-10-26 18:28:43 UTC
Hi, From the debian BTS: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674710 =====8<===== gnome-font-viewer doesn't support the standard --help and --version options: it tries to open a --help or --version file. Given the fact that a man page isn't provided either, it is not possible to get any documentation. =====8<=====
Created attachment 268482 [details] [review] proposed patch Newbie in C & patching here! No idea if I’ve done things correctly, but looks like the code works.
Review of attachment 268482 [details] [review]: Thanks, this looks mostly good. Just two little style nitpicks below. ::: src/font-view.c @@ +933,3 @@ + g_option_context_free (ctx); + + /* I18N: The '%s' is replaced with the command name. */ Should probably return EXIT_FAILURE here instead @@ +934,3 @@ + + return 1; + help_msg = g_strdup_printf (_("Run '%s --help' to see a full " Weird indentation for this closing bracket
Created attachment 268545 [details] [review] patch with EXIT_FAILURE Like that? By the way, there are some parts of the file that use many tabs, instead of spaces. Is that a good idea to correct that? and in the same patch or in another?
@Cosimo Cecchi: could you please follow up on comment 2?
Review of attachment 268545 [details] [review]: Looks good to me
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.