wget -O在Windows上产生错误

时间:2015-01-10 16:30:41

标签: wget

我正在尝试使用Windows上的wget下载引导程序,但我收到错误。我使用Powershell和Git Shell得到了大致相同的错误。我的命令如下:

wget -O bootstrap.zip https://github.com/twbs/bootstrap/releases/download/v3.1.0/bootstrap-3.1.0-dist.zip

我得到的错误如下:

Invoke-WebRequest : Parameter cannot be processed because the parameter name
'O' is ambiguous. Possible matches include: -OutFile -OutVariable -OutBuffer.
At line:1 char:6
+ wget -O bootstrap.zip
...

我看到-O被记录为在线手册页中的一个选项。我应该使用哪个选项代替-O(冲破资本哦)?

注意:此命令与Harry J.W的“使用Python进行测试驱动开发”一书中提供的完全相同。珀西瓦尔。

1 个答案:

答案 0 :(得分:1)

您应该使用以下命令:

wget -OutFile bootstrap.zip https://github.com/twbs/bootstrap/releases/download/v3.1.0/bootstrap-3.1.0-dist.zip

这指定您的wget输出应发送到OutFile bootstrap.zip