Skip to content

Commit 69aa806

Browse files
committed
vtd: Remove non-recommended startup options
1 parent 7717f25 commit 69aa806

File tree

1 file changed

+2
-20
lines changed
  • plugins/vtd/bin

1 file changed

+2
-20
lines changed

plugins/vtd/bin/vtd

+2-20
Original file line numberDiff line numberDiff line change
@@ -153,22 +153,12 @@ def teardown_runtime(runtime_dir: Path) -> None:
153153
type=click.Path(exists=True, file_okay=True, dir_okay=True),
154154
help="VTD setup to use, default to currently symlinked.",
155155
)
156-
@click.option(
157-
"--copy-setup",
158-
is_flag=True,
159-
help="Copy VTD setup in facade installation, instead of linking.",
160-
)
161156
@click.option(
162157
"-p",
163158
"--vtd-project",
164159
type=click.Path(exists=True, file_okay=True, dir_okay=True),
165160
help="VTD project to use, default to currently symlinked.",
166161
)
167-
@click.option(
168-
"--copy-project",
169-
is_flag=True,
170-
help="Copy VTD project in facade installation, instead of linking.",
171-
)
172162
@click.option(
173163
"-n",
174164
"--no-start",
@@ -187,9 +177,7 @@ def start(
187177
opt,
188178
skip_setup: bool,
189179
vtd_setup: str,
190-
copy_setup: bool,
191180
vtd_project: str,
192-
copy_project: bool,
193181
no_start: bool,
194182
vtd_args: str,
195183
):
@@ -221,10 +209,7 @@ def start(
221209
dst = opt.runtime_dir / "Data" / "Setups" / "Current"
222210
if dst.exists():
223211
os.remove(dst)
224-
if copy_setup:
225-
shutil.copytree(vtd_setup, dst, symlinks=True)
226-
else:
227-
os.symlink(vtd_setup, dst)
212+
shutil.copytree(vtd_setup, dst, symlinks=True)
228213

229214
if vtd_project is not None:
230215
logging.info("Select project: {}".format(vtd_project))
@@ -233,10 +218,7 @@ def start(
233218
dst = opt.runtime_dir / "Data" / "Projects" / "Current"
234219
if dst.exists():
235220
os.remove(dst)
236-
if copy_project:
237-
shutil.copytree(vtd_project, dst, symlinks=True)
238-
else:
239-
os.symlink(vtd_project, dst)
221+
os.symlink(vtd_project, dst)
240222

241223
if no_start:
242224
return

0 commit comments

Comments
 (0)