Tcl options, T=<script file, Script=<script file – Altera Quartus II Scripting User Manual
Page 128: Shell, Tcl options –102, S –102 -t=<script file> –102, Script=<script file> –102, Shell –102, Script=<script file> –102 --shell –102
2–102
Chapter 2: Command-line Executables
Tcl Options
Quartus II Scripting Reference Manual
© July 2013
Altera Corporation
Tcl Options
Command-line executables that support Tcl support the following options:
Option
Page
-s ............................................................................................................................................................. 2–102
-t=<script file> ...................................................................................................................................... 2–102
--script=<script file> ............................................................................................................................ 2–102
--shell...................................................................................................................................................... 2–102
--tcl_eval=<tcl command> .................................................................................................................. 2–103
Command-line executables that support Tcl include help on the following topics:
Help Topic
Page
-s
Refer to the help for --shell on
-t=<script file>
Refer to the help for --script=<script file> on
--script=<script file>
Option to load and execute the specified Tcl script.
Any remaining arguments are not interpreted as arguments to the executable, but passed to the Tcl script
as an argument, set in the global variable quartus(args).
The following example shows how to access the arguments from a Tcl script:
args.tcl:
proc show_arguments {} {
global quartus
foreach argument $quartus(args) {
puts "-> $argument"
}
}
show_arguments
% quartus_sh -t args.tcl a b c
% -> a
% -> b
% -> c
Note that this option does not allow other arguments to be specified before it.
--shell
Option to start the executable in shell mode, an interactive Tcl interpreter.
Additional arguments are not allowed before or after this option.