don't use module doc string as usage string stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Feb 2010 13:21:13 +0100
branchstable
changeset 4720 ddf4f19eb07a
parent 4719 aaed3f813ef8
child 4721 8f63691ccb7f
don't use module doc string as usage string
cwctl.py
--- a/cwctl.py	Fri Feb 26 13:19:14 2010 +0100
+++ b/cwctl.py	Fri Feb 26 13:21:13 2010 +0100
@@ -1,8 +1,13 @@
-"""%%prog %s [options] %s
+"""the cubicweb-ctl tool, based on logilab.common.clcommands to
+provide a pluggable commands system.
+
 
-The CubicWeb swiss-knife.
-
-%s"""
+:organization: Logilab
+:copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
+:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
+:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
+"""
+__docformat__ = "restructuredtext en"
 
 # *ctl module should limit the number of import to be imported as quickly as
 # possible (for cubicweb-ctl reactivity, necessary for instance for usable bash
@@ -979,7 +984,12 @@
 def run(args):
     """command line tool"""
     cwcfg.load_cwctl_plugins()
-    main_run(args, __doc__)
+    main_run(args, """%%prog %s [options] %s
+
+The CubicWeb swiss-knife.
+
+%s"""
+)
 
 if __name__ == '__main__':
     run(sys.argv[1:])