All pastes #287766 Raw Edit

Someone

public python v1 · immutable
#287766 ·published 2006-12-21 19:23 UTC
rendered paste body
[[[* win-tests.py:  (_usage_exit): document '--help' (-h) option.  (global): call _usage_exit() if run without arguments.]]]Index: win-tests.py===================================================================--- win-tests.py	(revision 22778)+++ win-tests.py	(working copy)@@ -32,6 +32,7 @@   print "  -v, --verbose        : talk more"   print "  -f, --fs-type=type   : filesystem type to use (fsfs is default)"   print "  -c, --cleanup        : cleanup after running a test"+  print "  -h, --help           : display this usage message"    print "  --svnserve-args=list : comma-separated list of arguments for"   print "                         svnserve"@@ -57,6 +58,9 @@ client_tests = filter(lambda x: x.startswith(CMDLINE_TEST_SCRIPT_PATH),                       all_tests) +if (len(sys.argv) == 1):+  _usage_exit()+ opts, args = my_getopt(sys.argv[1:], 'hrdvcu:f:',                        ['release', 'debug', 'verbose', 'cleanup', 'url=',                         'svnserve-args=', 'fs-type=', 'asp.net-hack',