remove --help

This commit is contained in:
程广 2024-11-15 15:10:05 +08:00
parent 6fd5111300
commit 9f26d1cf29
2 changed files with 6 additions and 6 deletions

View File

@ -139,10 +139,10 @@ func NewFVSet(v interface{}) (*FVSet, error) {
}
}
}
flags.BoolFunc("help", "Show help", func(s string) error {
flags.Usage()
return nil
})
// flags.BoolFunc("help", "Show help", func(s string) error {
// flags.Usage()
// return nil
// })
return &FVSet{
Name: name,
Value: &v,

View File

@ -15,6 +15,6 @@ func main() {
}
sargs := &targs{}
v, _ := command.NewFVSet(sargs)
v.Parse(os.Args[1:])
fmt.Println(sargs)
err := v.Parse(os.Args[1:])
fmt.Println(sargs, err)
}