drop support for configuration through stdin

This commit is contained in:
aler9
2020-10-14 00:29:27 +02:00
parent dbe7c01925
commit a0e053196d
3 changed files with 46 additions and 37 deletions

View File

@@ -63,7 +63,7 @@ func newProgram(args []string, stdin io.Reader) (*program, error) {
"rtsp-simple-server "+Version+"\n\nRTSP server.")
argVersion := k.Flag("version", "print version").Bool()
argConfPath := k.Arg("confpath", "path to a config file. The default is rtsp-simple-server.yml. Use 'stdin' to read config from stdin").Default("rtsp-simple-server.yml").String()
argConfPath := k.Arg("confpath", "path to a config file. The default is rtsp-simple-server.yml.").Default("rtsp-simple-server.yml").String()
kingpin.MustParse(k.Parse(args))
@@ -72,7 +72,7 @@ func newProgram(args []string, stdin io.Reader) (*program, error) {
os.Exit(0)
}
conf, err := loadConf(*argConfPath, stdin)
conf, err := loadConf(*argConfPath)
if err != nil {
return nil, err
}