diff --git a/hl7proxy.go b/hl7proxy.go index 4494fd4..e30075b 100644 --- a/hl7proxy.go +++ b/hl7proxy.go @@ -202,11 +202,11 @@ func main() { var headers flagsStringsArray = make(flagsStringsArray, 0) flag.Var(&headers, "header", "Additional HTTP headers in format 'Header: value'") + + flag.Parse() listenStr := fmt.Sprintf(":%d", *port) - flag.Parse() - if *configId == "" { fmt.Printf("No required -config flag is provided. Usage:\n") flag.PrintDefaults()