cwctl.py
changeset 3503 06bced8edddf
parent 3199 fc63b80ec979
parent 3486 ea6bf6f9ba0c
child 3589 a5432f99f2d9
equal deleted inserted replaced
3491:48b26bfd6f02 3503:06bced8edddf
   170 
   170 
   171     def run(self, args):
   171     def run(self, args):
   172         """run the command with its specific arguments"""
   172         """run the command with its specific arguments"""
   173         if args:
   173         if args:
   174             raise BadCommandUsage('Too much arguments')
   174             raise BadCommandUsage('Too much arguments')
   175         print 'CubicWeb version:', cwcfg.cubicweb_version()
   175         print 'CubicWeb %s (%s mode)' % (cwcfg.cubicweb_version(), cwcfg.mode)
   176         print 'Detected mode:', cwcfg.mode
       
   177         print
   176         print
   178         print 'Available configurations:'
   177         print 'Available configurations:'
   179         for config in CONFIGURATIONS:
   178         for config in CONFIGURATIONS:
   180             print '*', config.name
   179             print '*', config.name
   181             for line in config.__doc__.splitlines():
   180             for line in config.__doc__.splitlines():