From f1764bdc772916d40f824531705fffdfc462793e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Fri, 14 Jul 2023 14:39:07 +0545 Subject: [PATCH] stage add: remove --external --- dvc/commands/stage.py | 6 ------ tests/unit/command/test_stage.py | 1 - 2 files changed, 7 deletions(-) diff --git a/dvc/commands/stage.py b/dvc/commands/stage.py index dffcce3fe9..019e226597 100644 --- a/dvc/commands/stage.py +++ b/dvc/commands/stage.py @@ -195,12 +195,6 @@ def _add_common_args(parser): help="Declare output file or directory (do not put into DVC cache).", metavar="", ).complete = completion.FILE - parser.add_argument( - "--external", - action="store_true", - default=False, - help="Allow outputs that are outside of the DVC repository.", - ) parser.add_argument( "--outs-persist", action="append", diff --git a/tests/unit/command/test_stage.py b/tests/unit/command/test_stage.py index c902187a8b..4122106a75 100644 --- a/tests/unit/command/test_stage.py +++ b/tests/unit/command/test_stage.py @@ -47,7 +47,6 @@ def test_stage_add(mocker, dvc, command, parsed_command): "file:param1,param2", "--params", "param3", - "--external", "--desc", "description", "--force",