Skip to content

--force not allowed during dvc move #7240

Open
@ntjess

Description

@ntjess

Bug Report

Description

--force is required to overwrite a file during move, but this isn't allowed as a parameter

Reproduce

  1. Create a directory with files a and b, checking both into dvc
  2. dvc move a b produces the error
    Use '--force' to overwrite.
  3. dvc move --force a b produces the error
    ERROR: unrecognized arguments: --force

Expected

force should allow overwriting

Environment information

Output of dvc doctor:

DVC version: 2.9.3 (pip)
---------------------------------
Platform: Python 3.9.7 on Windows-10-10.0.22000-SP0
Supports:
        gdrive (pydrive2 = 1.10.0),
        webhdfs (fsspec = 2021.11.1),
        http (aiohttp = 3.8.1, aiohttp-retry = 2.4.6),
        https (aiohttp = 3.8.1, aiohttp-retry = 2.4.6)
Cache types: hardlink
Cache directory: NTFS on C:\
Caches: local
Remotes: gdrive
Workspace directory: NTFS on C:\
Repo: dvc, git

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: data-managementRelated to dvc add/checkout/commit/move/removebugDid we break something?uiuser interface / interaction

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions