[py-svn] r36503 - py/dist/py/bin

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Jan 11 16:40:50 CET 2007


Author: cfbolz
Date: Thu Jan 11 16:40:49 2007
New Revision: 36503

Modified:
   py/dist/py/bin/py.lookup
Log:
better help string for py.lookup


Modified: py/dist/py/bin/py.lookup
==============================================================================
--- py/dist/py/bin/py.lookup	(original)
+++ py/dist/py/bin/py.lookup	Thu Jan 11 16:40:49 2007
@@ -1,5 +1,12 @@
 #!/usr/bin/env python 
 
+"""\
+py.lookup SEARCH_STRING [options]
+
+Looks recursively at Python files for a SEARCH_STRING, starting from the
+present working directory. Prints the line, with the filename and line-number
+prepended."""
+
 import sys, os
 sys.path.insert(0, os.path.dirname(__file__))
 from _findpy import py
@@ -12,7 +19,7 @@
 
 optparse = py.compat.optparse
 
-parser = optparse.OptionParser()
+parser = optparse.OptionParser(usage=__doc__)
 parser.add_option("-i", "--ignore-case", action="store_true", dest="ignorecase",
                   help="ignore case distinctions")
 parser.add_option("-C", "--context", action="store", type="int", dest="context",


More information about the py-svn mailing list