Commit f334c69c authored by ramiro's avatar ramiro

Proper check for --help and -h parameters

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10543 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ae34e21e
...@@ -899,10 +899,6 @@ else ...@@ -899,10 +899,6 @@ else
die "Out of tree builds are impossible with whitespace in source path." die "Out of tree builds are impossible with whitespace in source path."
fi fi
if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
show_help
fi
FFMPEG_CONFIGURATION="$@" FFMPEG_CONFIGURATION="$@"
ENCODER_LIST=`sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' "$source_path/libavcodec/allcodecs.c"` ENCODER_LIST=`sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' "$source_path/libavcodec/allcodecs.c"`
...@@ -1008,7 +1004,7 @@ for opt do ...@@ -1008,7 +1004,7 @@ for opt do
NAME=$(toupper ${NAME%s}) NAME=$(toupper ${NAME%s})
eval show_list \$${NAME}_LIST eval show_list \$${NAME}_LIST
;; ;;
--help) show_help --help|-h) show_help
;; ;;
*) *)
die_unknown $opt die_unknown $opt
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment