Skip to content

Commit

Permalink
getOpt.tcl: skip first '--' in argv
Browse files Browse the repository at this point in the history
  • Loading branch information
tcler committed Jan 16, 2018
1 parent 891c823 commit 83abecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getOpt-3.0/getOpt.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ proc ::getOpt::argparse {optionList argvVar optVar optArgVar} {
return $::getOpt::flag(NOTOPT)
}
if {$rarg in {--}} {
set optArg [lrange $argv 0 end]
set optArg [lrange $argv 1 end]
set argv [list]
return $::getOpt::flag(NOTOPT)
}
Expand Down

0 comments on commit 83abecd

Please sign in to comment.