mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
Accept -? for glib-mkenums.
Commit 789e260638
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.
This commit is contained in:
parent
6c061da2a2
commit
924f1bc528
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user