From: Kanagaraj Manickam k00365106 Date: Thu, 8 Mar 2018 21:48:05 +0000 (+0530) Subject: Fix Profile creation failed X-Git-Tag: v2.0.2~312 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F67%2F34867%2F1;p=cli.git Fix Profile creation failed Issue-ID: CLI-99 Change-Id: I66a7a2bde49ae5747d0deb2f52d3b7c25319919e Signed-off-by: Kanagaraj Manickam k00365106 --- 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()); //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 '\n"); - this.print("Profiles: "); + this.print("Available profiles: "); this.print(OnapCommandRegistrar.getRegistrar().getUserProfiles().toString()); } else { this.args = Arrays.asList(new String [] {