On 12/8/06, Dan McGee <dpmcgee@gmail.com> wrote:
With my limited knowledge of python (about 2 hours now), I'll see what I can do. Let me know if you have any more suggestions for additions.
I just mean something like this: $ diff -u rankmirrors rankmirrors.2 --- rankmirrors 2006-12-08 13:56:54.000000000 -0600 +++ rankmirrors.2 2006-12-08 14:09:19.000000000 -0600 @@ -26,7 +26,7 @@ socket.setdefaulttimeout(10) def createOptParser(): - parser = OptionParser() + parser = OptionParser(usage="usage: %prog [options] <server list file>") parser.add_option("-n", dest="num", default=0, help="number of servers to print, 0 for all") parser.add_option("-v", "--verbose", action="store_true", dest="verbose", As for other suggestions, the only thing I can think of is an option to output in "file format" - that is, everything prefixed with '#' except the server lines, so one could just > it to a file.