diff --git a/spacy/cli/project/dvc.py b/spacy/cli/project/dvc.py index 331ed182c..fd93dd489 100644 --- a/spacy/cli/project/dvc.py +++ b/spacy/cli/project/dvc.py @@ -147,7 +147,8 @@ def run_dvc_commands( dvc_command = ["dvc", *c] # Add the flags if they are set to True for flag, is_active in flags.items(): - dvc_command.append(flag) + if is_active: + dvc_command.append(flag) run_command(dvc_command)