We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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" }
,-b, mandatory
clap:"foo"
,-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
The text was updated successfully, but these errors were encountered:
Oh this would be awesome ! Really like clap
Sorry, something went wrong.
fred1268
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: