diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-01-15 21:14:39 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-01-15 21:14:39 +0200 |
commit | 757e74b931d128414b290d027d2bf88f6668892a (patch) | |
tree | 58da0a9a1f1a5ed25147d2fe29cbdc75faa6a28e /rex | |
parent | 653d6919fd9725b172c0affb576ecd4960334c99 (diff) | |
download | rex-757e74b931d128414b290d027d2bf88f6668892a.tar.gz rex-757e74b931d128414b290d027d2bf88f6668892a.tar.bz2 |
One more fix
* rex (getopt): Always define progname.
Diffstat (limited to 'rex')
-rwxr-xr-x | rex | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -487,7 +487,7 @@ proc getopt {args} { set args [lreplace $args 0 1] } "-progname" { - set progname [lindex $args 1] + set progname "[lindex $args 1]: " set args [lreplace $args 0 1] } default { @@ -496,8 +496,8 @@ proc getopt {args} { } } - if [info exists progname] { - set progname "$progname: " + if ![info exists progname] { + set progname "" } if {[llength $args] != 4} { |