diff options
-rw-r--r-- | main/src/main/java/org/onap/cli/main/OnapCli.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/main/java/org/onap/cli/main/OnapCli.java b/main/src/main/java/org/onap/cli/main/OnapCli.java index 30db0703..938497dd 100644 --- a/main/src/main/java/org/onap/cli/main/OnapCli.java +++ b/main/src/main/java/org/onap/cli/main/OnapCli.java @@ -148,7 +148,7 @@ public class OnapCli { new ArrayList<String>()); //Make space of interactive mode/command mode this.args.remove(0); //--profile or -c - this.args.remove(1); //profile name + this.args.remove(0); //profile name } } catch (Exception e) { this.print(e); @@ -251,7 +251,7 @@ public class OnapCli { } else if (!args.isEmpty() && this.args.get(0).equals(OnapCliConstants.PARAM_INTERACTIVE_PROFILE)) { if (args.size() == 1) { this.print("Please use it in the form of 'profile <profile-name>'\n"); - this.print("Profiles: "); + this.print("Available profiles: "); this.print(OnapCommandRegistrar.getRegistrar().getUserProfiles().toString()); } else { this.args = Arrays.asList(new String [] { |