Skip to content

Commit

Permalink
Fix: daemon CLI arg parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
leg100 committed Jun 21, 2021
1 parent 0362926 commit 7fe5f2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/otsd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ func main() {

cmdutil.SetFlagsFromEnvVariables(cmd.Flags())

if err := cmd.ParseFlags(os.Args[1:]); err != nil {
panic(err.Error())
}

if server.SSL {
if server.CertFile == "" || server.KeyFile == "" {
fmt.Fprintf(os.Stderr, "must provide both --cert-file and --key-file")
Expand Down

0 comments on commit 7fe5f2f

Please sign in to comment.