Accept -? for glib-mkenums.
authorMart Raudsepp <leio@gentoo.org>
Sat, 12 Sep 2009 21:20:01 +0000 (00:20 +0300)
committerMart Raudsepp <leio@gentoo.org>
Tue, 22 Sep 2009 08:22:44 +0000 (11:22 +0300)
Commit 789e260638d tried to add support for -?, but there is a typo
and instead -h was added when already present instead of -? for one
of the cases.
It works without this corrections, because all unrecognized options
trigger usage showing as well, but this is more correct.

This was bug 556706 originally.

gobject/glib-mkenums.in

index 1e40622..6dcb474 100755 (executable)
@@ -235,7 +235,7 @@ while ($_=$ARGV[0],/^-/) {
     elsif (/^--vprod$/)                      { $vprod = $vprod . shift }
     elsif (/^--vtail$/)                      { $vtail = $vtail . shift }
     elsif (/^--comments$/)                   { $comment_tmpl = shift }
-    elsif (/^--help$/ || /^-h$/ || /^-h$/)   { usage; }
+    elsif (/^--help$/ || /^-h$/ || /^-\?$/)  { usage; }
     elsif (/^--version$/ || /^-v$/)          { version; }
     else { usage; }
     last if not defined($ARGV[0]);