From: Camille GOUTTEBROZE Date: Mon, 20 Oct 2014 09:25:10 +0000 (+0200) Subject: --name becomes a mandatory field for bin/app-quickstart X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8be4c82efbc7ae8b03000c0948b5d32685d89028;p=modules%2Fkernel.git --name becomes a mandatory field for bin/app-quickstart --- diff --git a/bin/app-quickstart.py b/bin/app-quickstart.py index 5ebd1d5e5..ced8b62f2 100755 --- a/bin/app-quickstart.py +++ b/bin/app-quickstart.py @@ -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 ) diff --git a/bin/appli_gen.py b/bin/appli_gen.py index 199790f80..70d8a012b 100644 --- a/bin/appli_gen.py +++ b/bin/appli_gen.py @@ -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,