Skip to content
New issue

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

"prefix" doesn't prefix xor names #343

Open
tirsen opened this issue Nov 8, 2022 · 0 comments
Open

"prefix" doesn't prefix xor names #343

tirsen opened this issue Nov 8, 2022 · 0 comments

Comments

@tirsen
Copy link

tirsen commented Nov 8, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant