From 9864334c9a7fa7f7902f0b153a3b1be599eca2b4 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Tue, 12 Nov 2013 09:26:07 +0800 Subject: [PATCH] Impossible to create an instance without installing it --- lib/commands/create.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/commands/create.py b/lib/commands/create.py index 7e41345..ec668fd 100644 --- a/lib/commands/create.py +++ b/lib/commands/create.py @@ -111,8 +111,13 @@ class CreateCommand(Command): suffixes = args.suffix install = args.install - if engine and not install: - self.argumentError('--engine can only be used with --install.') + # Throw an error when --engine is used without --install. The code is currently commented out + # because as --engine has a default value, it will always be set, and so it becomes impossible + # to create an instance without installing it. I cannot think about a clean fix yet. Removing + # the default value will cause --help not to output the default as it should... Let's put more + # thoughts into this and perhaps use argument groups. + # if engine and not install: + # self.argumentError('--engine can only be used with --install.') for version in versions: for suffix in suffixes: -- 2.11.0