Skip to content

Commit

Permalink
Merge pull request #1 from vsachs/get_argument_result
Browse files Browse the repository at this point in the history
Arg interface can return result pointer
  • Loading branch information
vsachs committed May 12, 2021
2 parents 231d348 + 0e35760 commit fb9eb10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions argument.go
Expand Up @@ -28,6 +28,7 @@ type Arg interface {
GetOpts() *Options
GetSname() string
GetLname() string
GetResult() interface{}
}

func (o arg) GetOpts() *Options {
Expand All @@ -42,6 +43,10 @@ func (o arg) GetLname() string {
return o.lname
}

func (o arg) GetResult() interface{} {
return o.result
}

type help struct{}

// checkLongName if long argumet present.
Expand Down

0 comments on commit fb9eb10

Please sign in to comment.