Sujet : Re: support for built-in -opt style options for proc
De : (at) *nospam* ednolan (ted@loft.tnolan.com (Ted Nolan)
Groupes : comp.lang.tclDate : 25. Jun 2024, 22:25:47
Autres entêtes
Organisation : loft
Message-ID : <le0qurF3hmoU1@mid.individual.net>
References : 1 2 3 4
User-Agent : trn 4.0-test76 (Apr 2, 2001)
In article <
v5fc9o$1nlts$1@dont-email.me>, et99 <
et99@rocketship1.me> wrote:
On 6/25/2024 9:20 AM, Rich wrote:
et99 <et99@rocketship1.me> wrote:
snip
>
There is also, in tcllib, the 'cmdline' package:
>
https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/tcllib/files/modules/cmdline/cmdline.md
Which provides an options parser that is very similar (although not
100% identical) to the GNU C 'getopt' options parser. And the man page
has an example.
>
It looks like a recipe for a unix command line, not so much a tcl command.
>
Yes. I recently put together a number of Tcl command line programs
using cmdline getopt into one Tcl program, keeping the parsing.
It looked... really weird.
(Love getopt for command line stuff though)
-- columbiaclosings.comWhat's not in Columbia anymore..