Simplify cli options

This commit is contained in:
Rien Maertens 2020-12-31 15:22:11 +01:00
parent f1cb66b663
commit 6f55f735b0
No known key found for this signature in database
GPG Key ID: AE66CE42F1AF9DEF

View File

@ -31,7 +31,7 @@ while [ $# -gt 0 ]; do
shift
shift
;;
-t | --throughput)
-m | --measure)
measure_throughput=true
shift
;;
@ -56,13 +56,13 @@ while [ $# -gt 0 ]; do
fi
shift
;;
--window_title)
-t | --title)
window_title="$2"
shift
shift
;;
-h | --help | *)
echo "Usage: $0 [-p] [-s <source>] [-o <output>] [-f <format>] [--window_title <title>]"
echo "Usage: $0 [-p] [-s <source>] [-o <output>] [-f <format>] [-t <title>]"
echo "Examples:"
echo " $0 # live view in landscape"
echo " $0 -p # live view in portrait"