diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-03-09 03:18:05 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-03-09 03:18:05 +0530 |
commit | 1ac6dc7bc93865a92c1c5d19a0a1e8a82c7d3380 (patch) | |
tree | 7423853bfd0d135ef1d017029a2f9d33218ccbba /main | |
parent | 3a0535f344dcc291f0e50ef508b5dd0a6d09e3de (diff) |
Fix Profile creation failed
Issue-ID: CLI-99
Change-Id: I66a7a2bde49ae5747d0deb2f52d3b7c25319919e
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'main')
-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 [] { |