cubicweb/devtools/devctl.py
branch3.26
changeset 12687 59c3e639f62c
parent 12080 b8c4a8bab7b3
child 12709 280c9db41038
--- a/cubicweb/devtools/devctl.py	Tue Jul 02 14:54:01 2019 +0200
+++ b/cubicweb/devtools/devctl.py	Mon Jun 17 17:23:36 2019 +0200
@@ -622,6 +622,11 @@
           'help': 'verbose mode: will ask all possible configuration questions',
           }
          ),
+        ("short-description",
+         {'short': 's', 'type': 'string', 'metavar': '<short description>',
+          'help': 'short description for the cube',
+         }
+         ),
         ("author",
          {'short': 'a', 'type' : 'string', 'metavar': '<author>',
           'default': 'LOGILAB S.A. (Paris, FRANCE)',
@@ -717,7 +722,7 @@
         if osp.exists(cubedir):
             self.fail("%s already exists!" % cubedir)
         skeldir = osp.join(BASEDIR, 'skeleton')
-        longdesc = shortdesc = input(
+        longdesc = shortdesc = self['short-description'] or input(
             'Enter a short description for your cube: ')
         if verbose:
             longdesc = input(