参数vc将添加到命令tf中吗? [英] What does the argument `vc` add to the command `tf`?
问题描述
运行tf scorch
的行为符合我的预期.但是,运行tf scorch /?
表示此命令的语法应为tf vc scorch
.在SO的其他地方,我发现使用了后一种语法:命令tf vc scorch可以吗?.
Running tf scorch
behaves as I'd expect. However, running tf scorch /?
says the syntax for this command should be tf vc scorch
. Looking elsewhere on SO I've found this latter syntax used: What does the command tf vc scorch do?.
vc
参数是否有影响/是否有充分的理由包括或排除它?
Does the vc
argument have any impact / is there any good reason to include or exclude it?
推荐答案
只需运行tf.exe /?
,它将告诉您:
Just run tf.exe /?
and it will tell you:
Microsoft (R) TF - Team Foundation Version Control Tool, Version 15.127.27130.1
Copyright (c) Microsoft Corporation. All rights reserved.
Type tf vc help for a list of supported Version Control commands.
Type tf git help for a list of supported Git commands.
Type tf settings help for a list of supported server settings commands.
因此,有许多TFVC命令,许多Git命令和几个设置命令.这些类别中的每一个都已经共享了help
,permission
和view
命令,这些需要消除歧义.
So there are a number of TFVC commands, a number of Git commands and a couple of settings commands. Each of these categories already share the help
, permission
and view
command, these require disambiguation.
通过包含vc
或git
,您可以明确告诉命令行要使用的子命令.为了向后兼容,某些命令会自动路由到vc
,而无需指定顶级区分符.
By including vc
or git
you're explicitly telling the command line which subcommand you want to use. For backwards compatibility, some commands are automatically routed to vc
without specifying the top level differentiator.
这篇关于参数vc将添加到命令tf中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!