Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-09-14
21:34 • Ticket [1027926fff] Add --version command line flag to tclsh status still Cl... artifact: ac78a5ddc6 user: dgp
21:27 • Closed ticket [1027926fff]. artifact: e4ed313441 user: dgp
21:03 • Ticket [1027926fff]: 2 changes artifact: cf50ce5101 user: dkf
13:59 • New ticket [1027926fff]. artifact: 3a270f47cd user: lvirden

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.