merge #244 - ARTEMIS-304 Prompt for role when creating instance

This commit is contained in:
Andy Taylor 2015-11-18 08:37:20 +00:00
commit 527da42f16
1 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ public class Create extends InputAbstract {
@Option(name = "--password", description = "The user's password (Default: input)")
String password;
@Option(name = "--role", description = "The name for the role created (Default: amq)")
@Option(name = "--role", description = "The name for the role created (Default: input)")
String role;
@Option(name = "--no-web", description = "This will remove the web server definition from bootstrap.xml")
@ -370,7 +370,7 @@ public class Create extends InputAbstract {
public String getRole() {
if (role == null) {
role = "amq";
role = input("--role", "Please provide the default role:", "amq");
}
return role;
}