采购脚本文件时如何传递参数

时间:2018-12-24 14:56:06

标签: tcl parameter-passing

我正在采购tcl脚本文件,并且无法传递参数。 即。

bar

node_modules中,它使用npm install --save ../foo echo " ['$compname', '$dancerName placed $dancer_placed out of $competitors \n Dance Name: $dance Comp \n Name: $feis \nDate: $date', '$dancer_placed'], " 打印为字符串

注意:我只需要来源tcl脚本。。不需要其他任何

echo "
[\"$compname\", \"$dancerName placed $dancer_placed out of $competitors \n
Dance Name: $dance Comp \n Name: $feis \nDate: $date\", \"$dancer_placed\"],
"

1 个答案:

答案 0 :(得分:2)

您可以设置argv

set origargv $::argv
set ::argv [list -param1 x -param2 y]
source myscript

源脚本可以照常从argv访问参数。