kong icon indicating copy to clipboard operation
kong copied to clipboard

"prefix" doesn't prefix xor names

Open tirsen opened this issue 3 years ago • 0 comments

type DBConfig struct {
	Password         string         `help:"Password" xor:"password" optional:""`
	PasswordFile     string         `help:"File which content will be used for a password" xor:"password" optional:""`
	PasswordCommand  string         `help:"Command to run to retrieve password" xor:"password" optional:""`
}

type SourceTargetConfig struct {
	Source DBConfig `help:"Database config of source to be copied from" prefix:"source-" embed:""`
	Target DBConfig `help:"Database config of source to be copied from" prefix:"target-" embed:""`
}

I get error:

--source-password --target-password can't be used together

tirsen avatar Nov 08 '22 08:11 tirsen