mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-17 04:04:41 +00:00
cleanup --version
This commit is contained in:
parent
8f839c9d4a
commit
cfc3e9bea6
@ -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
|
||||
|
4
main.go
4
main.go
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user