Table of Contents


NAME

lshift - shift list and return first element (Decida Procedure)

USAGE

          lshift inputlist

ARGUMENTS

inputlist List to be shifted.

RESULTS

Sets inputlist to 2nd to last elements of original inputlist
Returns first element in inputlist

NOTES

useful for command-line argument processing

EXAMPLE-CALL

            while {[llength $argv] > 0} {
              set arg [lshift argv]
              switch -- $arg {
                -lib  {set lib [lshift argv]}
                -show {set show 1}
                default {lappend tests $arg}
              }
            }

AUTHOR

Richard Booth

Table of Contents