From 68a0c39ad17a47c7bda1db5546a16a4f526ce34d Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Mon, 4 May 2020 17:51:07 +0300 Subject: [PATCH] run: remove deprecated -y|--yes (#3737) --- dvc/command/run.py | 11 +---------- tests/unit/command/test_run.py | 1 - 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/dvc/command/run.py b/dvc/command/run.py index 6b9ac1d5d6..ac6b1b5e93 100644 --- a/dvc/command/run.py +++ b/dvc/command/run.py @@ -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, @@ -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, @@ -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", diff --git a/tests/unit/command/test_run.py b/tests/unit/command/test_run.py index fef8e8be30..08bbe3fb2d 100644 --- a/tests/unit/command/test_run.py +++ b/tests/unit/command/test_run.py @@ -23,7 +23,6 @@ def test_run(mocker, dvc): "--wdir", "wdir", "--no-exec", - "--yes", "--overwrite-dvcfile", "--ignore-build-cache", "--no-commit",