Tk Library Source Code

View Ticket
Login
Ticket UUID: 688965
Title: better -? help for fileutil::touch
Type: Patch Version: None
Submitter: glennjnn Created on: 2003-02-18 19:55:06
Subsystem: fileutil Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-03-25 12:25:15
Resolution: Accepted Closed By: andreas_kupries
    Closed on: 2003-03-25 05:25:15
Description:
the cmdline::getoptions help is a bit bull-headed about
displaying argv0.  This isn't great for using
getoptions internally for procs.

Nevertheless, the fileutil::touch proc could be
modified to look better

Now, it looks like:
$ echo 'package req fileutil; fileutil::touch
-help'|tclsh
tclsh options:
 -a                   set the atime only
...

("tclsh options:"??)

The attached diff provides:
$ echo 'package req fileutil; fileutil::touch
-help'|tclsh
tclsh : fileutil::touch [options] filename ...
options:
 -a                   set the atime only
...
User Comments: andreas_kupries added on 2003-03-25 12:25:15:
Logged In: YES 
user_id=75003

Applied patch to head.

glennjnn added on 2003-02-19 02:55:56:

File Added - 42802: fileutil.tcl.diff

Attachments: