equal
deleted
inserted
replaced
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(): |