поправил флаги

This commit is contained in:
Alexander NeonXP Kiryukhin 2024-04-06 22:24:09 +03:00
parent fcb71b492a
commit a0992b6f28
Signed by: NeonXP
GPG key ID: 35E33E1AB7776B39

View file

@ -24,6 +24,8 @@ func main() {
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, os.Kill) ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, os.Kill)
defer cancel() defer cancel()
flag.Parse()
cfg := &Config{} cfg := &Config{}
fp, err := os.Open(*config) fp, err := os.Open(*config)