Fix Profile creation failed 67/34867/1
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Thu, 8 Mar 2018 21:48:05 +0000 (03:18 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Thu, 8 Mar 2018 21:48:05 +0000 (03:18 +0530)
Issue-ID: CLI-99

Change-Id: I66a7a2bde49ae5747d0deb2f52d3b7c25319919e
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
main/src/main/java/org/onap/cli/main/OnapCli.java

index 30db070..938497d 100644 (file)
@@ -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 [] {