cwctl.py
branchstable
changeset 3486 ea6bf6f9ba0c
parent 3198 d2f48d30e73e
child 3503 06bced8edddf
child 3560 7d76775f965d
equal deleted inserted replaced
3470:c9c8b231db7b 3486:ea6bf6f9ba0c
   169 
   169 
   170     def run(self, args):
   170     def run(self, args):
   171         """run the command with its specific arguments"""
   171         """run the command with its specific arguments"""
   172         if args:
   172         if args:
   173             raise BadCommandUsage('Too much arguments')
   173             raise BadCommandUsage('Too much arguments')
   174         print 'CubicWeb version:', cwcfg.cubicweb_version()
   174         print 'CubicWeb %s (%s mode)' % (cwcfg.cubicweb_version(), cwcfg.mode)
   175         print 'Detected mode:', cwcfg.mode
       
   176         print
   175         print
   177         print 'Available configurations:'
   176         print 'Available configurations:'
   178         for config in CONFIGURATIONS:
   177         for config in CONFIGURATIONS:
   179             print '*', config.name
   178             print '*', config.name
   180             for line in config.__doc__.splitlines():
   179             for line in config.__doc__.splitlines():