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:
- dynamic bit strength
plausibility checks
stream issue
opus length ffprobe -show_format phil.mkv
......@@ -78,9 +78,9 @@ while true; do
case "$1" in
-v | --verbose ) FFMPEG_VERBOSE="-v info"; shift ;;
-q | --quiet ) AUDIOWMARK_ARGS+=("-q"); QUIET=1; shift ;;
-h | --help ) show_help_and_exit ;;
--key ) AUDIOWMARK_ARGS+=("--key" "$2"); shift 2 ;;
--strength ) AUDIOWMARK_ARGS+=("--strength" "$2"); shift 2 ;;
--help ) show_help_and_exit ;;
-- ) shift; break ;;
* ) break ;;
esac
......@@ -112,5 +112,5 @@ elif [ "$1" == "get" ]; then
elif [ "$1" == "probe" ]; then
echo $2 $(audio_encode_options "$2")
else
echo "videowmark: error parsing command line arguments"
echo "videowmark: error parsing command line arguments (use videowmark -h)"
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