mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 15:28:28 +01:00
run: remove deprecated -y|--yes (#3737)
This commit is contained in:
+1
-10
@@ -11,8 +11,6 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
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 @@ class CmdRun(CmdBase):
|
||||
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",
|
||||
|
||||
@@ -23,7 +23,6 @@ def test_run(mocker, dvc):
|
||||
"--wdir",
|
||||
"wdir",
|
||||
"--no-exec",
|
||||
"--yes",
|
||||
"--overwrite-dvcfile",
|
||||
"--ignore-build-cache",
|
||||
"--no-commit",
|
||||
|
||||
Reference in New Issue
Block a user