Add examples to usage info

This commit is contained in:
Rien Maertens
2020-04-07 11:48:46 +02:00
parent 48a7ed84c3
commit 088d3732c4
2 changed files with 9 additions and 2 deletions

View File

@ -28,8 +28,14 @@ while [ $# -gt 0 ]; do
shift
shift
;;
*)
-h | --help | *)
echo "Usage: $0 [-p] [-s <source>] [-o <output>] [-f <format>]"
echo "Examples:"
echo " $0 # live view in landscape"
echo " $0 -p # live view in portrait"
echo " $0 -s 192.168.0.10 # connect to different IP"
echo " $0 -o remarkable.mp4 # record to a file"
echo " $0 -o udp://dest:1234 -f mpegts # record to a stream"
exit 1
;;
esac