поправил флаги
This commit is contained in:
parent
fcb71b492a
commit
a0992b6f28
1 changed files with 2 additions and 0 deletions
2
main.go
2
main.go
|
@ -24,6 +24,8 @@ func main() {
|
|||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, os.Kill)
|
||||
defer cancel()
|
||||
|
||||
flag.Parse()
|
||||
|
||||
cfg := &Config{}
|
||||
|
||||
fp, err := os.Open(*config)
|
||||
|
|
Loading…
Reference in a new issue