Tk Library Source Code

View Ticket
Login
Ticket UUID: 601960
Title: New Proc: cmdline::parseargs
Type: Patch Version: None
Submitter: nobody Created on: 2002-08-29 16:25:46
Subsystem: cmdline Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Deleted Last Modified: 2002-09-07 03:53:30
Resolution: None Closed By: andreas_kupries
    Closed on: 2002-09-06 20:53:30
Description:
Please see the attached cmdline.tcl file, which
includes a new proc "cmdline::parseargs".

Here is a usage example:

cmdline::parseargs \
{startPath.arg {safeFlag} port.arg {host.arg 127.0.0.1}} \
{stuff {morestuff 0}} $argv

This gives the proc the following cmdline:
-startPath <path> -port <port> ?-safeFlag? ?-host?
stuff ?morestuff?

It's been a tremendously valuable proc for my own work.
Enjoy -- it's yours. If possible, I'd appreciate
inclusion of the credit line in the file head (see
attached file) but you can take it out if you want.

-Ed
User Comments: nobody added on 2002-08-29 23:31:11:
Logged In: NO 

Argghhh...I forgot to check the upload box (why does it need
to be there, anyhow, when you've obviously selected a file?)
See *next* post.

nobody added on 2002-08-29 23:26:55:
Logged In: NO 

Argghhh...I forgot to check the upload box (why does it need
to be there, anyhow, when you've obviously selected a file?)
See *next* post.