Skip to content

Reddit improvement proposal - nestest structs #3

@fred1268

Description

@fred1268

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions