Tk Library Source Code

View Ticket
Login
Ticket UUID: 466850
Title: cmdline::getoptions comments improvement
Type: Patch Version: None
Submitter: glennjnn Created on: 2001-10-01 14:58:08
Subsystem: cmdline Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2001-10-13 05:41:09
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2001-10-12 22:41:09
Description:
Part of the comments for the getoptions proc read:

#optlistA list-of-lists where each element specifies an option
#in the form:
#flag default comment
#If flag ends in ".arg" then the value is taken from the
#command line. Otherwise it is a boolean and appears in
#the result if present on the command line. If flag ends
#


This is misleading because it says that the "default"
field is required, even if the flag takes no arg.

Please change the comments to read:

#optlistA list-of-lists where each element specifies an option
#in the form:
#(where flag takes no argument)
#flag comment
#(or where flag takes an argument)
#                               flag.arg default comment
#If flag ends in ".arg" then the value is taken from the
#next token present in the command line. Otherwise it is a 
#boolean and appears in the result if present on the command line.
User Comments: andreas_kupries added on 2001-10-13 05:41:09:
Logged In: YES 
user_id=75003

Patch committed to head.

andreas_kupries added on 2001-10-13 04:37:36:

File Added - 11906: 466850.diff

Attachments: