Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-02-04
01:50 • Closed ticket [833910ffff]: bad message for command line errors plus 3 other... artifact: 3fd1041129 user: dgp
01:49 • Ticket [833910ffff]: 4 changes artifact: dcecf11201 user: dgp
2003-10-31
22:14 • New ticket [833910ffff]. artifact: 996edb26e2 user: dgp

bad message for command line errors

Closed / Fixed833910ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-10-31 22:14:04
While working on Bug 833637, 
I noticed this:

$ tclsh runall.tcl -singleproc
Running with standard tcltest...
Version 2.2.4
can't read "Option(-preservecore)": list must have an
even number of elements
    while executing
"return $Option($option)"
    (procedure "Configure" line 12)
    invoked from within
"Configure -preservecore"
    (procedure "tcltest::preserveCore" line 5)
    invoked from within
"tcltest::preserveCore 2"
    (file "runall.tcl" line 12)

the error is that the -singleproc option is
missing an argument.  The error message
fails to explain that.
dgpplain2004-02-04 01:49:48
Logged In: YES 
user_id=80530


This is a bug in [ProcessFlags].
It calls on [configure] to do the
option parsing and error throwing,
but [configure $option] is legal, so
the error of a single option with
no value is not caught.

Committing fix.
dgp Closed ticket [833910ffff]. [History diff]2004-02-04 01:50:07
Log in (anonymous is fine) to add a comment.