History

improve handling of --help

Previously ./configure --prefix=/foo --help didn't show the help-text

Bernhard Reutner-Fischer committed 17 years ago

Commit d2e12511 parent 55cb2171 file · +3 −1Browse files

Unified · Split

configure+3−1
@@ -130,6 +130,8 @@ for opt do · 129 unmodified lines
130130 ;;
131131 --with-libgcc) use_libgcc="yes"
132132 ;;
133+ --help|-h) show_help="yes"
134+ ;;
133135 esac
134136 done
135137
@@ -203,7 +205,7 @@ if $cc -o $TMPO $TMPC 2> /dev/null ; then · 67 unmodified lines
203205 gcc_major="4"
204206 fi
205207
206−if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
208+if test x"$show_help" = "xyes" ; then
207209 cat << EOF
208210
209211 Usage: configure [options]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t