Making more messes with parser config

This commit is contained in:
2022-06-04 17:38:24 -04:00
parent a73acedc6d
commit 3de96b813f
2 changed files with 58 additions and 8 deletions

View File

@@ -15,7 +15,16 @@ func main() {
log.SetFlags(0)
pt, err := argh.ParseArgs(os.Args, nil)
pt, err := argh.ParseArgs(os.Args, argh.NewParserConfig(
&argh.CommandConfig{
NValue: argh.OneOrMoreValue,
ValueNames: []string{"topping"},
Flags: &argh.Flags{
Automatic: true,
},
},
nil,
))
if err != nil {
log.Fatal(err)
}