yildizabdullah
yildizabdullah

Reputation: 1971

How to source a script with args within tclsh

As far as I know, the source command only accepts the name of the script. Is there any workaround to source a script with any number of arguments?

Upvotes: 0

Views: 83

Answers (1)

glenn jackman
glenn jackman

Reputation: 246992

set argv [list your parameters go here]
source myscript.tcl

Upvotes: 2

Related Questions