[Tcllib-bugs] [ tcllib-Bugs-1473699 ] -? and -help broken
by SourceForge.net other posts by this author
Apr 20 2006 10:05AM messages near this date
|
[Tcllib-bugs] [ tcllib-Patches-1453327 ] dns: add support of TXT records
Bugs item #1473699, was opened at 2006-04-20 10:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112883&aid=1473699&group_id=12883
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: cmdline
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Andreas Kupries (andreas_kupries)
Summary: -? and -help broken
Initial Comment:
cmdline lists the Options -? and -help per default but
they doesn't work with the dash.
Example Script:
#!/bin/sh
#exec tclsh "$0" "$@"
#
package require cmdline
#
set options {
{h "print this message"}
}
#
# set usage string
set usage ": name \[options\] \[value\]"
#
# parse commandline arguments into array
array set cmdopt [::cmdline::getoptions argv $options
$usage]
#
#EoF
Gives errors:
./example_script.tcl -?
./example_script.tcl -help
Works as expected:
./example_script.tcl ?
./example_script.tcl help
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112883&aid=1473699&group_id=12883
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tcllib-bugs mailing list
Tcllib-bugs@[...].net
https://lists.sourceforge.net/lists/listinfo/tcllib-bugs
|