a818bb6f9119

Add more docstrings.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 28 Aug 2009 21:18:26 -0400
parents e0afc487bbe0
children c0e55881e41c
branches/tags (none)
files t.py

Changes

--- a/t.py	Fri Aug 28 21:15:26 2009 -0400
+++ b/t.py	Fri Aug 28 21:18:26 2009 -0400
@@ -175,6 +175,7 @@
 
 
 def _build_parser():
+    """Return a parser for the command-line interface."""
     parser = OptionParser()
     
     parser.add_option("-a", "--add",
@@ -203,6 +204,7 @@
     return parser
 
 def _main():
+    """Run the command-line interface."""
     (options, args) = _build_parser().parse_args()
     
     td = TaskDict(taskdir=options.taskdir, name=options.name)