diff --git a/pkg/flag/db_flags.go b/pkg/flag/db_flags.go index 37685b104204..352a0094be7c 100644 --- a/pkg/flag/db_flags.go +++ b/pkg/flag/db_flags.go @@ -137,6 +137,9 @@ func (f *DBFlagGroup) ToOptions() (DBOptions, error) { downloadDBOnly := f.DownloadDBOnly.Value() downloadJavaDBOnly := f.DownloadJavaDBOnly.Value() + if downloadDBOnly && downloadJavaDBOnly { + return DBOptions{}, xerrors.New("--download-db-only and --download-java-db-only options can not be specified both") + } if downloadDBOnly && skipDBUpdate { return DBOptions{}, xerrors.New("--skip-db-update and --download-db-only options can not be specified both") }