aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/cmdutil.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-23 14:34:51 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-23 14:34:51 +0000
commit43d8c19ae299bab2cba0f29b560396ba6d8bd1a5 (patch)
tree1b8edf5f70e875f300b9157ef1c6b503eceae9b9 /libbe/cmdutil.py
parentf9e8f7bb4360d473073b59e4dcb9e1a38d7e0d56 (diff)
downloadbugseverywhere-43d8c19ae299bab2cba0f29b560396ba6d8bd1a5.tar.gz
Moved FileString and get_file() into utility.py
Diffstat (limited to 'libbe/cmdutil.py')
-rw-r--r--libbe/cmdutil.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py
index e6d5a8f..31a542d 100644
--- a/libbe/cmdutil.py
+++ b/libbe/cmdutil.py
@@ -2,6 +2,7 @@ import bugdir
import plugin
import os
import optparse
+import utility
def unique_name(bug, bugs):
chars = 1
@@ -111,6 +112,11 @@ class CmdOptionParser(optparse.OptionParser):
return iter_combine([self._short_opt.iterkeys(),
self._long_opt.iterkeys()])
+ def help_str(self):
+ fs = utility.FileString()
+ self.print_help(fs)
+ return fs.str
+
def underlined(instring):
"""Produces a version of a string that is underlined with '='