go-clap icon indicating copy to clipboard operation
go-clap copied to clipboard

Reddit improvement proposal - nestest structs

Open fred1268 opened this issue 1 year ago • 1 comments

It'd be neat if you could handle nested structs to control for flow e.g.

type Command struct{ Foo *struct{ Bar ,-b, mandatory } clap:"foo" Biz *struct{ Bar ,-b } clap:"biz" }

go run main.go foo -b "because bar is required"

go run main.go biz

That being said there's nothing here that prevents the user from doing that themselves

fred1268 avatar May 01 '23 12:05 fred1268