CLI class in Command line interface

Commandline support functions.

12 members:

string cmdhandler
string

cmdhandler

integer msgtype
integer, 0 .. 1
  • 0 = Standard
  • 1 = Server style
  • message type

    string script
    multiline string

    script

    object stdin
    object

    standard input file

    object stdout
    object

    standard output file

    function addMacro
    doesn't return a value

    add macro

    function addMacro(string name, integer numargs, string definition, string helptext)
    function execute
    doesn't return a value

    execute

    function execute(string command)
    function listMacros
    doesn't return a value

    list macros

    function listMacros()
    function print
    doesn't return a value

    print

    function print(string text)
    function println
    doesn't return a value

    println

    function println(string text)
    function quit

    quit

    function quit()
    function removeMacro
    doesn't return a value

    remove macro

    function removeMacro(string name, integer numargs)

    (numargs==-2) means remove all macros matching the name, otherwise only one definition is removed


    Global context>>Experiment definition>>Command line interface