super(CreateCommand, self).__init__(*args, **kwargs)
self._arguments = [
(
+ ['-i', '--install'],
+ {
+ 'action': 'store_true',
+ 'dest': 'install',
+ 'help': 'launch the installation script after creating the instance'
+ }
+ ),
+ (
['-e', '--engine'],
{
'action': 'store',
'choices': ['mysqli', 'pgsql'],
'default': self.C.get('defaultEngine'),
- 'help': 'database engine to use',
+ 'help': 'database engine to install the instance on, use with --install',
'metavar': 'engine'
}
),
(
- ['-i', '--install'],
- {
- 'action': 'store_true',
- 'dest': 'install',
- 'help': 'launch the installation script after creating the instance'
- }
- ),
- (
['-t', '--integration'],
{
'action': 'store_true',
engine = args.engine
versions = args.version
suffixes = args.suffix
+ install = args.install
+
+ if engine and not install:
+ self.argumentError('--engine can only be used with --install.')
for version in versions:
for suffix in suffixes:
'engine': engine,
'integration': args.integration,
'identifier': args.identifier,
- 'install': args.install,
+ 'install': install,
'run': args.run
}
self.do(arguments)