toolsutils.py
branchstable
changeset 4556 43c14e0e8972
parent 4554 2279ba039494
parent 4352 afe1f9bc308a
child 4721 8f63691ccb7f
--- a/toolsutils.py	Fri Feb 12 12:57:14 2010 +0100
+++ b/toolsutils.py	Fri Feb 12 12:57:56 2010 +0100
@@ -28,6 +28,9 @@
 from cubicweb import warning
 from cubicweb import ConfigurationError, ExecutionError
 
+def underline_title(title, car='-'):
+    return title+'\n'+(car*len(title))
+
 def iter_dir(directory, condition_file=None, ignore=()):
     """iterate on a directory"""
     for sub in listdir(directory):
@@ -248,7 +251,7 @@
 def main_run(args, doc):
     """command line tool"""
     try:
-        base_main_run(args, doc)
+        base_main_run(args, doc, copyright=None)
     except ConfigurationError, err:
         print 'ERROR: ', err
         sys.exit(1)