Changeset fbcf38a in tol


Ignore:
Timestamp:
Dec 16, 2009, 7:31:47 PM (17 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
7954da1
Parents:
38eea65
Message:

refs #817 : new option -tolversion indicate the version of tol required

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1838 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolsh/tolsh.vfs/lib/app-tolsh/tolsh.tcl

    r38eea65 rfbcf38a  
    3636  set options(out,enabled) no
    3737  set options(runmode) ""
     38  set options(tolversion) ""
    3839}
    3940
    … …  
    6061#    -e?n?    --> use english language
    6162#    -s?p?    --> use spanish language
    62 #    -server [port] --> start tol as a server tolsvc.<pid>.log will be the log
     63#    -tolversion ver --> specify an strict tol version to start with
     64#    -server [port]  --> start tol as a server tolsvc.<pid>.log will be the log
    6365#             [port] is the port number where the serve will be listening.
    6466#
    … …  
    133135        }
    134136        set options(runmode) "interactive"
     137      } elseif {$opt eq "tolversion"} {
     138        incr i
     139        set options(tolversion) [lindex $cmdline $i]
    135140      } elseif {$opt eq "server"} {
    136141        # check if next argument is the port number
    … …  
    216221    -e?n?    --> use english language
    217222    -s?p?    --> use spanish language
    218    -server [port] --> start tol as a server tolsvc.<pid>.log will be the log
    219            [port] is the port number where the serve will be listening.
     223    -tolversion --> specify an strict tol version to start with
     224    -server [port] --> start tol as a server tolsvc.<pid>.log will be the log
     225            [port] is the port number where the serve will be listening.
    220226 
    221227  Multiple verbose mode is accepted in one option, for instance,
    … …  
    329335  # Load Toltcl (+tol)
    330336  #
    331   package require -exact Toltcl 2.0.1
     337  if { $options(tolversion) eq "" } {
     338    puts "Loading default tol version : [ package require Toltcl ]"
     339  } else {
     340    puts "Loading requested tol version : $options(tolversion)"
     341    package require -exact Toltcl $options(tolversion)
     342  }
    332343
    333344  logtmp "after require Toltcl"
Note: See TracChangeset for help on using the changeset viewer.