Skip to content

Commit

Permalink
getOpt.tcl: init out var and remove used var
Browse files Browse the repository at this point in the history
  • Loading branch information
tcler committed Aug 28, 2017
1 parent 7b1e434 commit 891c823
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions getOpt-3.0/getOpt.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,15 @@ proc ::getOpt::getOptions {optLists argv validOptionVar invalidOptionVar notOpti
upvar $notOptionVar notOption
upvar $forwardOptionVar forwardOption

set optList "[concat {*}[dict values $optLists]]"
#clear out var
array unset validOption *
array unset invalidOption *
set notOption [list]

set optList "[concat {*}[dict values $optLists]]"
set opt ""
set optarg ""
set nargv $argv
set forwardOpts ""
#set argc [llength $nargv]

while {1} {
Expand Down

0 comments on commit 891c823

Please sign in to comment.