mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
d88566d716
Pure TCL code for command line options parsing. PR: 10661 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
24 lines
825 B
Plaintext
24 lines
825 B
Plaintext
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
|