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