[glib] Accept -? for glib-mkenums.
- From: Mart Raudsepp <mraudsepp src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glib] Accept -? for glib-mkenums.
- Date: Tue, 22 Sep 2009 08:24:30 +0000 (UTC)
commit 924f1bc528b212aab91adf608ef32e41b67f3298
Author: Mart Raudsepp <leio gentoo org>
Date: Sun Sep 13 00:20:01 2009 +0300
Accept -? for glib-mkenums.
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 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
index 1e40622..6dcb474 100755
--- a/gobject/glib-mkenums.in
+++ b/gobject/glib-mkenums.in
@@ -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]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]