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",
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",
(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 )
#! /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,