cleanup --version

This commit is contained in:
aler9 2020-05-11 09:39:49 +02:00
parent 8f839c9d4a
commit cfc3e9bea6
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ RTSP server.
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
--version print rtsp-simple-server version
--version print version
--protocols="udp,tcp" supported protocols
--rtsp-port=8554 port of the RTSP TCP listener
--rtp-port=8000 port of the RTP UDP listener

View File

@ -67,7 +67,7 @@ func newProgram(sargs []string) (*program, error) {
kingpin.CommandLine.Help = "rtsp-simple-server " + Version + "\n\n" +
"RTSP server."
argVersion := kingpin.Flag("version", "print rtsp-simple-server version").Bool()
argVersion := kingpin.Flag("version", "print version").Bool()
argProtocolsStr := kingpin.Flag("protocols", "supported protocols").Default("udp,tcp").String()
argRtspPort := kingpin.Flag("rtsp-port", "port of the RTSP TCP listener").Default("8554").Int()
argRtpPort := kingpin.Flag("rtp-port", "port of the RTP UDP listener").Default("8000").Int()
@ -100,7 +100,7 @@ func newProgram(sargs []string) (*program, error) {
}
if args.version == true {
fmt.Println("rtsp-simple-server " + Version)
fmt.Println(Version)
os.Exit(0)
}