From 6947b1e4a41ddca05c9a403787df10a18504ecb0 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Fri, 6 Sep 2024 11:03:01 +0300 Subject: [PATCH] rename getflags to getparser --- cmd/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index a7f7174..906c4cc 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -23,7 +23,7 @@ var ( scriptDir = path.Join("services", "registration") ) -func getFlags(fp string, debug bool) (*asm.FlagParser, error) { +func getParser(fp string, debug bool) (*asm.FlagParser, error) { flagParser := asm.NewFlagParser().WithDebug() _, err := flagParser.Load(fp) if err != nil { @@ -128,7 +128,7 @@ func main() { ctx := context.Background() ctx = context.WithValue(ctx, "SessionId",sessionId) pfp := path.Join(scriptDir, "pp.csv") - flagParser, err := getFlags(pfp, true) + flagParser, err := getParser(pfp, true) if err != nil { os.Exit(1)