back to index

Command line arguments

The scriptengine behaviour can be adjusted by a number of command line arguments; following the common GNU style each option has a long (e.g. "--help") and short (e.g. "-h") form.

$ tks -h
TKS - an extensible c++ glue script language 0.x.y.z. (C) 2004 Bastian Spiegel.
-- visit http://tkscript.de for further information.

USAGE:
tks source [args] - execute a project (.tkp) or portable archive (.tkx)

tks source.tks [args] - execute a single source file

tks source.tkx [args] - execute a portable archive (under Windows you may also try e.g. "tks http://tkscript.de/tkx/bobfield.tkx")

tks source.tkp [args] - execute an unpackaged project (usually for testing purposes)

tks -c --compile <proj> - compile a project (proj.tkp) to a portable TKX archive (proj.tkx) for distribution purposes

tks -c --compile proj.tkp [proj.tkx] - compile a project to a portable TKX archive for distribution purposes 

tks -d --debuglevel nr - enable debug output, 1..99

tks -da --disassemble  - print p-code for JIT compiled source sections

tks -fi --forceint - disable the JIT compiler

tks -h --help  - print this help text

tks -l --list proj.tkx  - list the contents of the given TKX archive

tks -mp --modulepath </path/to/dir/>|<drive:\path\to\dir\>  - set the module search-path

tks -nbc --noboundarycheck - disable runtime JIT array boundary checks

tks -nra --noarrayautoresize - dont resize array on-write and output errmsg instead

tks -nlf --nolocalfiles  - disable access to local files (except the ones listed in the project file)

tks -pp --pluginpath </path/to/dir/>|<drive:\path\to\dir\> - set the search-path for native C/C++ extensions

tks -q --quiet - disable debug output (trace)

tks -v --version - display version number (e.g. 0.5.2.6) 


back to index