cwctl.py
branchstable
changeset 4720 ddf4f19eb07a
parent 4718 3dc3ad02d091
child 4721 8f63691ccb7f
equal deleted inserted replaced
4719:aaed3f813ef8 4720:ddf4f19eb07a
     1 """%%prog %s [options] %s
     1 """the cubicweb-ctl tool, based on logilab.common.clcommands to
     2 
     2 provide a pluggable commands system.
     3 The CubicWeb swiss-knife.
     3 
     4 
     4 
     5 %s"""
     5 :organization: Logilab
       
     6 :copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
       
     7 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
       
     8 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
       
     9 """
       
    10 __docformat__ = "restructuredtext en"
     6 
    11 
     7 # *ctl module should limit the number of import to be imported as quickly as
    12 # *ctl module should limit the number of import to be imported as quickly as
     8 # possible (for cubicweb-ctl reactivity, necessary for instance for usable bash
    13 # possible (for cubicweb-ctl reactivity, necessary for instance for usable bash
     9 # completion). So import locally in command helpers.
    14 # completion). So import locally in command helpers.
    10 import sys
    15 import sys
   977 
   982 
   978 
   983 
   979 def run(args):
   984 def run(args):
   980     """command line tool"""
   985     """command line tool"""
   981     cwcfg.load_cwctl_plugins()
   986     cwcfg.load_cwctl_plugins()
   982     main_run(args, __doc__)
   987     main_run(args, """%%prog %s [options] %s
       
   988 
       
   989 The CubicWeb swiss-knife.
       
   990 
       
   991 %s"""
       
   992 )
   983 
   993 
   984 if __name__ == '__main__':
   994 if __name__ == '__main__':
   985     run(sys.argv[1:])
   995     run(sys.argv[1:])