rename getflags to getparser

This commit is contained in:
Carlosokumu 2024-09-06 11:03:01 +03:00
parent 2cc85379cc
commit 6947b1e4a4
Signed by untrusted user: carlos
GPG Key ID: 7BD6BC8160A5C953

View File

@ -23,7 +23,7 @@ var (
scriptDir = path.Join("services", "registration") 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() flagParser := asm.NewFlagParser().WithDebug()
_, err := flagParser.Load(fp) _, err := flagParser.Load(fp)
if err != nil { if err != nil {
@ -128,7 +128,7 @@ func main() {
ctx := context.Background() ctx := context.Background()
ctx = context.WithValue(ctx, "SessionId",sessionId) ctx = context.WithValue(ctx, "SessionId",sessionId)
pfp := path.Join(scriptDir, "pp.csv") pfp := path.Join(scriptDir, "pp.csv")
flagParser, err := getFlags(pfp, true) flagParser, err := getParser(pfp, true)
if err != nil { if err != nil {
os.Exit(1) os.Exit(1)