diff --git a/goworker.go b/goworker.go index a83d4a4..3d7b3c8 100644 --- a/goworker.go +++ b/goworker.go @@ -37,6 +37,8 @@ type WorkerSettings struct { } func SetSettings(settings WorkerSettings) { + // force the flags to be parsed first before setting the configs. + Init() workerSettings = settings }