Add examples in help message

This commit is contained in:
Brendan LE GLAUNEC
2017-12-01 17:47:52 +01:00
committed by Brendan Le Glaunec
parent df44c7d6f1
commit 2399df693d
+4
View File
@@ -71,6 +71,10 @@ func parseArguments() error {
if viper.GetBool("help") {
pflag.Usage()
fmt.Println("\nExamples of usage:")
fmt.Println("\tScanning your home network for RTSP streams:\tcameradar -t 192.168.0.0/24")
fmt.Println("\tScanning a remote camera on a specific port:\tcameradar -t 172.178.10.14 -p 18554 -s 2")
fmt.Println("\tScanning an unstable remote network: \t\tcameradar -t 172.178.10.14/24 -s 1 --timeout 10000 -l")
os.Exit(0)
}