1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

Use a function for help output.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18734 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2006-06-16 18:38:35 +00:00
parent fc293f6305
commit 58dc9b7eb2

17
configure vendored
View File

@ -184,10 +184,8 @@ esac
LANGUAGES=`echo help/help_mp-??.h help/help_mp-??_??.h | sed "s:help/help_mp-\(..\).h:\1:g" | sed "s:help/help_mp-\(.....\).h:\1:g"`
for parm in "$@" ; do
if test "$parm" = "--help" || test "$parm" = "-help" || test "$parm" = "-h" ; then
cat << EOF
show_help(){
cat << EOF
Usage: $0 [OPTIONS]...
Configuration:
@ -440,10 +438,15 @@ It will try to autodetect all configuration options. If you --enable an option
it will be forcefully turned on, skipping autodetection. This can break
compilation, so you need to know what you are doing.
EOF
exit 0
fi
done # for parm in ...
exit 0
} #show_help()
for parm in "$@" ; do
case $parm in
--help|-help|-h)
show_help
esac
done
# 1st pass checking for vital options
_mmx=auto