File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -908,13 +908,19 @@ def table_diff(
908908 """Show the diff between two tables or a selection of models when they are specified."""
909909 source , target = source_to_target .split (":" )
910910 select_model = kwargs .pop ("select_model" , None )
911- select_models = {model } if model else select_model
912- obj .table_diff (
913- source = source ,
914- target = target ,
915- select_models = select_models ,
916- ** kwargs ,
917- )
911+
912+ if model and select_model :
913+ obj .console .log_error (
914+ "The --select-model option cannot be used together with a model argument. Please choose one of them."
915+ )
916+ else :
917+ select_models = {model } if model else select_model
918+ obj .table_diff (
919+ source = source ,
920+ target = target ,
921+ select_models = select_models ,
922+ ** kwargs ,
923+ )
918924
919925
920926@cli .command ("rewrite" )
You can’t perform that action at this time.
0 commit comments