aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-09-21 23:30:57 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-09-21 23:30:57 +0000
commitc2675d4a69899998dcfa95b85eb63a7fa393e29f (patch)
tree84d030074a64d42f849cc414542561555b3c9b95 /configure
parent06eab4bae11775c49c8db7112bf62bc49bb78ee1 (diff)
downloadffmpeg-c2675d4a69899998dcfa95b85eb63a7fa393e29f.tar.gz
Proper check for --help and -h parameters
Originally committed as revision 10543 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 1 insertions, 5 deletions
diff --git a/configure b/configure
index 496b4a77ca..d6be405e06 100755
--- a/configure
+++ b/configure
@@ -899,10 +899,6 @@ else
die "Out of tree builds are impossible with whitespace in source path."
fi
-if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
- show_help
-fi
-
FFMPEG_CONFIGURATION="$@"
ENCODER_LIST=`sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' "$source_path/libavcodec/allcodecs.c"`
@@ -1008,7 +1004,7 @@ for opt do
NAME=$(toupper ${NAME%s})
eval show_list \$${NAME}_LIST
;;
- --help) show_help
+ --help|-h) show_help
;;
*)
die_unknown $opt