]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
--name becomes a mandatory field for bin/app-quickstart
authorCamille GOUTTEBROZE <camille.gouttebroze@cea.fr>
Mon, 20 Oct 2014 09:25:10 +0000 (11:25 +0200)
committerCamille GOUTTEBROZE <camille.gouttebroze@cea.fr>
Mon, 20 Oct 2014 09:25:10 +0000 (11:25 +0200)
bin/app-quickstart.py
bin/appli_gen.py

index 5ebd1d5e539beaef158b5a4554d8815927bc6dfa..ced8b62f29fa343904b1f2c6009455ec273d79da 100755 (executable)
@@ -35,7 +35,7 @@ def profileQuickStartParser() :
                       action="store",
                       dest="prefix",
                       default='.',
-                      help="Where the application's sources will be generated")
+                      help="Where the application's sources will be generated. [Default : '.']")
 
     parser.add_option('-m',
                       "--modules",
@@ -44,15 +44,22 @@ def profileQuickStartParser() :
                       action="store",
                       dest="modules",
                       default='KERNEL,GUI',
-                      help="List of the application's modules")
+                      help="List of the application's modules. [Default : KERNEL,GUI]")
 
     parser.add_option('-n',
                       "--name",
                       type="string",
                       action="store",
                       dest="name",
-                      default='PROFILE',
-                      help="Name of the profile")
+                      help="Name of the application")
+
+    parser.add_option('-v',
+                      "--version",
+                      type="string",
+                      action="store",
+                      dest="version",
+                      default='1.0',
+                      help="Version of the application. [Default : 1.0]")
 
     parser.add_option('-f',
                       "--force",
@@ -112,4 +119,7 @@ if __name__ == '__main__':
 
     (options, args) = profileQuickStartParser().parse_args()
 
+    if not options.name :
+        raise RuntimeError( "A name must be given to the application. Please use option --name." )
+
     profileGenerateSources( options, args )
index 199790f805d221889dcc0f56dd860b1824b134dd..70d8a012b45c82816603ee4a84ae4ceb58ed10e3 100644 (file)
@@ -1,5 +1,5 @@
 #! /usr/bin/env python
-#  -*- coding: iso-8859-1 -*-
+#  -*- coding: utf-8 -*-
 # Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,