1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-10 19:51:43 +00: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

13
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"` 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 show_help(){
if test "$parm" = "--help" || test "$parm" = "-help" || test "$parm" = "-h" ; then
cat << EOF cat << EOF
Usage: $0 [OPTIONS]... Usage: $0 [OPTIONS]...
Configuration: Configuration:
@ -441,9 +439,14 @@ it will be forcefully turned on, skipping autodetection. This can break
compilation, so you need to know what you are doing. compilation, so you need to know what you are doing.
EOF EOF
exit 0 exit 0
fi } #show_help()
done # for parm in ...
for parm in "$@" ; do
case $parm in
--help|-help|-h)
show_help
esac
done
# 1st pass checking for vital options # 1st pass checking for vital options
_mmx=auto _mmx=auto