Liste des Groupes | Revenir à cl tcl |
et99 <et99@rocketship1.me> wrote:snip
There is also, in tcllib, the 'cmdline' package:It looks like a recipe for a unix command line, not so much a tcl command.
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.
Quite a number of other tcllib modules use 'cmdline' for their optionsI suggested that one could "parse" a Tcl command spec a-la the manual's standard, because it should be familiar to all Tcl programmers, or at least those that RTM :)
parsing, so it is 'reasonably standard' in that sense -- and being very
similar to the gnulib C 'getopt' library function makes it much more
'standards like' (assuming one considers C library functions to be
'standard') than most.
Les messages affichés proviennent d'usenet.