flags : can check for both Flag types because the value.FieldByName().Type() can be printed
This commit is contained in:
parent
869ca3c290
commit
0d32446986
4 changed files with 10 additions and 15 deletions
|
|
@ -1,8 +1,6 @@
|
|||
package sort
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/brtholomy/um/go/flags"
|
||||
)
|
||||
|
||||
|
|
@ -45,6 +43,5 @@ func parseArgs(args []string) options {
|
|||
}
|
||||
|
||||
func Sort(args []string) {
|
||||
opts := parseArgs(args)
|
||||
fmt.Println(opts)
|
||||
_ = parseArgs(args)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue