Commit 560960c4 authored by Stefan Westerfeld's avatar Stefan Westerfeld

videowmark: support -h as alternative for --help

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 0baeb052
...@@ -2,5 +2,4 @@ possible improvements: ...@@ -2,5 +2,4 @@ possible improvements:
- dynamic bit strength - dynamic bit strength
plausibility checks plausibility checks
stream issue
opus length ffprobe -show_format phil.mkv opus length ffprobe -show_format phil.mkv
...@@ -78,9 +78,9 @@ while true; do ...@@ -78,9 +78,9 @@ while true; do
case "$1" in case "$1" in
-v | --verbose ) FFMPEG_VERBOSE="-v info"; shift ;; -v | --verbose ) FFMPEG_VERBOSE="-v info"; shift ;;
-q | --quiet ) AUDIOWMARK_ARGS+=("-q"); QUIET=1; shift ;; -q | --quiet ) AUDIOWMARK_ARGS+=("-q"); QUIET=1; shift ;;
-h | --help ) show_help_and_exit ;;
--key ) AUDIOWMARK_ARGS+=("--key" "$2"); shift 2 ;; --key ) AUDIOWMARK_ARGS+=("--key" "$2"); shift 2 ;;
--strength ) AUDIOWMARK_ARGS+=("--strength" "$2"); shift 2 ;; --strength ) AUDIOWMARK_ARGS+=("--strength" "$2"); shift 2 ;;
--help ) show_help_and_exit ;;
-- ) shift; break ;; -- ) shift; break ;;
* ) break ;; * ) break ;;
esac esac
...@@ -112,5 +112,5 @@ elif [ "$1" == "get" ]; then ...@@ -112,5 +112,5 @@ elif [ "$1" == "get" ]; then
elif [ "$1" == "probe" ]; then elif [ "$1" == "probe" ]; then
echo $2 $(audio_encode_options "$2") echo $2 $(audio_encode_options "$2")
else else
echo "videowmark: error parsing command line arguments" echo "videowmark: error parsing command line arguments (use videowmark -h)"
fi fi
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