1
我有一個tcl腳本drakon_gen.tcl
。我運行它,從另一個腳本run.tcl
這樣的:我需要使用另一個tcl腳本的選項運行tcl腳本
source "d:\\del 3\\drakon_editor1.22\\drakon_gen.tcl"
當我運行run.tcl
我有以下的輸出:
This utility generates code from a .drn file.
Usage: tclsh8.5 drakon_gen.tcl <options>
Options:
-in <filename> The input filename.
-out <dir> The output directory. Optional.
現在我需要添加到run.tcl
選項是在輸出中。我嘗試了很多方法,但我收到錯誤。什麼是添加選項的正確方法?
您可能還需要設置'argc'和'argv0'全局變量,儘管它們更少使用。 –