goption --help should not create a new group if there are no groups
Submitted by Behdad Esfahbod
Link to original bug (#336234)
Description
As mentioned in bug 336089, the --help option should be included with "Application Options" if there are no groups. Every GTK+ app has at least a "GTK+ options" group though...
Here is pango-view --help output:
Usage: pango-view [OPTION...] - FILE
Help Options: -?, --help Show help options
Application Options: --no-auto-dir No layout direction according to contents --backend=cairo/xft/ft2/x Pango backend to use for rendering (default: cairo) -q, --no-display Do not display (just write to file or whatever) --dpi=number Set the resolution --ellipsize=start/middle/end Ellipsization mode --font=description Set the font description --header Display the options in the output --hinting=none/auto/full Hinting style --indent=points Width in points to indent paragraphs --margin=pixels Set the margin on the output in pixels --markup Interpret text as Pango markup -o, --output=file Save rendered image to output file --pangorc=file pangorc file to use (default is ./pangorc) --rtl Set base direction to right-to-left --rotate=degrees Angle at which to rotate results -n, --runs=integer Run Pango layout engine this many times -t, --text=string Text to display (instead of a file) --version Show version numbers --waterfall Create a waterfall display -w, --width=points Width in points to which to wrap output --wrap=word/char/word-char Text wrapping mode (needs a width to be set)