d88566d716
Pure TCL code for command line options parsing. PR: 10661 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
23 lines
825 B
Text
23 lines
825 B
Text
The package is slightly altered by this porter to:
|
|
a) use namespace for auxiliary procedures
|
|
b) return an error rather then output it to stderr
|
|
|
|
The original README follows:
|
|
|
|
This package includes two routines for parsing command-line options in
|
|
a TCL script:
|
|
|
|
foxGetOpt.tcl -- this file contains the routine "getopt", a close
|
|
emulation of the getopt(3) library routine for C programs.
|
|
|
|
foxTypedOpts.tcl -- This contains the routine "typedopts", which uses
|
|
long option names and which does type checking on option arguments.
|
|
|
|
There is also a man page for each routine (named after the routine, not
|
|
the file), and an ASCII'fied version of each man page called
|
|
<file>.README.
|
|
|
|
If you have any comments / suggestions / bug-reports / bug-fixes, etc.,
|
|
please email me at: darkfox@netcom.com
|
|
|
|
Thanks, and enjoy! - Johnson Earls
|