forked from urdt/ussd
rename getflags to getparser
This commit is contained in:
parent
2cc85379cc
commit
6947b1e4a4
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user