Changeset 5736 for trunk/gui


Ignore:
Timestamp:
Jun 25, 2015 12:30:17 PM (9 years ago)
Author:
mmc
Message:

Fixed the -execute option so that if a -tool option happens to be specified,
it overrides anything that gets passed in via the toolxml variable. Usually,
these are the same, but the script was throwing an error when you pass a
-tool option, and it shouldn't do that. It should just use it or ignore it
(because it's the same as the toolxml variable).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/apps/execute.tcl

    r5663 r5736  
    3232Rappture::resources::load
    3333
     34# Parse command line options
     35# ----------------------------------------------------------------------
     36Rappture::getopts argv params {
     37    value -tool ""
     38    value -status ""
     39    value -output ""
     40    value -cleanup no
     41}
     42
    3443# load the XML info in the driver file
    3544if {[catch {Rappture::library $driverxml} result]} {
     
    4150
    4251# If tool.xml is not specified, try to find it the way Rappture would.
     52if {$params(-tool) ne ""} {
     53    set toolxml $params(-tool)
     54}
    4355if {$toolxml eq ""} {
    4456    if {[file isfile tool.xml]} {
     
    120132}
    121133
    122 # Parse command line options to see
     134# Apply effects of all other command line options
    123135# ----------------------------------------------------------------------
    124 Rappture::getopts argv params {
    125     value -status ""
    126     value -output ""
    127     value -cleanup no
    128 }
    129 
    130136if {$params(-status) ne ""} {
    131137    set LogFid [open $params(-status) w]
Note: See TracChangeset for help on using the changeset viewer.