Commit d0e1e513 authored by Barry Warsaw's avatar Barry Warsaw

docstring(): Function for returning __doc__ % globals()

parent f622a33b
......@@ -53,6 +53,7 @@ __version__ = '0.1'
import sys
import os
import string
import getopt
import ColorDB
from PyncheWidget import PyncheWidget
......@@ -76,8 +77,12 @@ RGB_TXT = [
def docstring():
return string.rstrip(__doc__ % globals())
def usage(status, msg=''):
print __doc__ % globals()
print docstring()
if msg:
print msg
sys.exit(status)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment