我正在采购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\"],
"
答案 0 :(得分:2)
您可以设置argv
:
set origargv $::argv
set ::argv [list -param1 x -param2 y]
source myscript
源脚本可以照常从argv
访问参数。