diff --git a/kitexcall.go b/kitexcall.go index da82729..5802622 100644 --- a/kitexcall.go +++ b/kitexcall.go @@ -25,7 +25,7 @@ import ( ) func main() { - args := argparse.NewAugment() + args := argparse.NewArgument() if err := args.ParseArgs(); err != nil { fail(err) diff --git a/pkg/argparse/args.go b/pkg/argparse/args.go index cbb45b5..ca9e4fc 100644 --- a/pkg/argparse/args.go +++ b/pkg/argparse/args.go @@ -32,7 +32,7 @@ type Argument struct { help bool } -func NewAugment() *Argument { +func NewArgument() *Argument { return &Argument{ Config: config.Config{ Meta: make(map[string]string), diff --git a/pkg/argparse/args_test.go b/pkg/argparse/args_test.go index 22c6df7..15134db 100644 --- a/pkg/argparse/args_test.go +++ b/pkg/argparse/args_test.go @@ -23,7 +23,7 @@ import ( ) func TestAugment_ParseArgs(t *testing.T) { - a := NewAugment() + a := NewArgument() for _, tt := range []struct { name string