summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander NeonXP Kiryukhin <i@neonxp.ru>2024-04-06 22:24:09 +0300
committerAlexander NeonXP Kiryukhin <i@neonxp.ru>2024-04-06 22:24:09 +0300
commita0992b6f28b2156e5afc671534164d8c7cf01665 (patch)
tree1ae0ac2046ac678610333cfdbcf9c5497b0ef411
parentfcb71b492a5b69dabb0d6aef969ef0ea8e8ac7a3 (diff)
поправил флагиv1.0.0
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index 0878c9a..701e093 100644
--- a/main.go
+++ b/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)