TABLE OF CONTENTS


::pwtk::queue::optionParser

USAGE

   ::pwtk::queue::optionParser $queueSystem none
 or
   ::pwtk::queue::optionParser $queueSystem parse

DESCRIPTION

How to parse options, specified on the QUEUE command-line. Possibilities are:

SOURCE

    if { [info procs ::pwtk::${queueSystem}::parseOptions_] ne {} } {
        rename ::pwtk::${queueSystem}::parseOptions_ {}
    }
    switch -glob --  $parser {
        none {
            rename ::pwtk::${queueSystem}::addOptionsToCmdLine_ ::pwtk::${queueSystem}::parseOptions_
        }
        parse* {
            rename ::pwtk::${queueSystem}::addOptionsToBatchScript_ ::pwtk::${queueSystem}::parseOptions_
        }
        default {
            ::pwtk::error "wrong type of the ${queueSystem} option parser '$parser', must be 'none' or 'parse'" 1
        }
    }
}