Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Add --version command line flag to tclsh

Closed / Rejected1027926fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-09-14 13:59:10
I'd like to propose that some sort of command line
version reporting - probably --version as that is
pretty common (though certainly -V is
an alternative that I've seen) be used by tclsh -
perhaps only if no other arguments are provided - to
generate info about the version of tclsh
being invoked.

The output might be as simple as:

puts "Tcl [info patchlevel]"

or as useful as

puts "Tcl [info patchlevel]"
parray tcl_platform
dkf Ticket [1027926fff]: 2 changes [History diff]2004-09-14 21:03:14
dgpplain2004-09-14 21:27:51
Logged In: YES 
user_id=80530

No.
dgpplain2004-09-14 21:34:08
Logged In: YES 
user_id=80530

Oops.  Premature click. 

See the TCLCORE discussion about
TIP 216 on reason to avoid adding
more command line option processing
to tclsh itself.  Consider instead a
script appliction to be added to the
core distribution that might
support useful options offered by
other languages' interactive interpreters.
Log in (anonymous is fine) to add a comment.