Skip to content

Commit

Permalink
Remove 'with-' prefix from the prefix list in 'getopt' as it is no lo…
Browse files Browse the repository at this point in the history
…nger needed there.
  • Loading branch information
mistachkin authored and msteveb committed May 14, 2017
1 parent 85498ae commit 0432857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/getopt.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ proc getopt {argvname} {
# --name=value
dict lappend opts $name [list str $value]
} elseif {[regexp {^--(enable-|disable-)?([^=]*)$} $arg -> prefix name]} {
if {$prefix in {enable- with- ""}} {
if {$prefix in {enable- ""}} {
set value 1
} else {
set value 0
Expand Down

0 comments on commit 0432857

Please sign in to comment.