Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions dvc/command/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

class CmdRun(CmdBase):
def run(self):
overwrite = self.args.yes or self.args.overwrite_dvcfile

if not any(
[
self.args.deps,
Expand Down Expand Up @@ -45,7 +43,7 @@ def run(self):
fname=self.args.file,
wdir=self.args.wdir,
no_exec=self.args.no_exec,
overwrite=overwrite,
overwrite=self.args.overwrite_dvcfile,
ignore_build_cache=self.args.ignore_build_cache,
no_commit=self.args.no_commit,
outs_persist=self.args.outs_persist,
Expand Down Expand Up @@ -159,13 +157,6 @@ def add_parser(subparsers, parent_parser):
default=False,
help="Only create stage file without actually running it.",
)
run_parser.add_argument(
"-y",
"--yes",
action="store_true",
default=False,
help="Deprecated, use --overwrite-dvcfile instead",
)
run_parser.add_argument(
"--overwrite-dvcfile",
action="store_true",
Expand Down
1 change: 0 additions & 1 deletion tests/unit/command/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def test_run(mocker, dvc):
"--wdir",
"wdir",
"--no-exec",
"--yes",
"--overwrite-dvcfile",
"--ignore-build-cache",
"--no-commit",
Expand Down