Tk Library Source Code

View Ticket
Login
Ticket UUID: 1047058
Title: document end of options switch -- for md5 2
Type: Bug Version: None
Submitter: mic42 Created on: 2004-10-14 14:12:22
Subsystem: md5 Assigned To: patthoyts
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-02-17 21:47:44
Resolution: Fixed Closed By: patthoyts
    Closed on: 2005-02-17 14:47:44
Description:
The md5 package has trouble with strings containing -
as first character, so there is support for -- as end
of options...

example:

# this errors
md5::md5 -hex -flabber
# this does not
md5::md5 -hex -- -flabber

So everything is fine, but the switch isn't documented....

Optionally it could be an idea to just interpret the
last argument as string if neither -file nor -channel
is given and only one argument is left, would safe md5
from the classical nuisance we have with switch...


Michael
User Comments: patthoyts added on 2005-02-17 21:47:44:
Logged In: YES 
user_id=202636

I've fixed this to make the '--' optional as an end of args
marker and arranged the code to cope with data that has a
leading hyphen. 
So now both examples will be OK. Also
 md5::md5 -hex -- --  will hash the last --  too.

Also done for md4.

I havn't added it to the documentation as the -- is rather
redundant now.

andreas_kupries added on 2005-02-15 06:13:51:
Logged In: YES 
user_id=75003

Pat, for you as writer of md5 v2.