update info of infra/README.md
[ealt-edge.git] / ocd / cli / ealt / cmd / appm / create.go
index 5ea257d..4969db6 100644 (file)
@@ -28,8 +28,7 @@ func NewAppCreateCommand() *cobra.Command {
                Short: "To create the application on MEP Node",
                Long:  `To create the application on MEP Node`,
                RunE: func(cmd *cobra.Command, args []string) error {
-                       var theFlags []string
-                       theFlags[0] = cmd.Flag("packagefile").Value.String()
+                       theFlags := []string{cmd.Flag("packagefile").Value.String()}
                        err := adapter.BuilderRequest(theFlags, "NewAppCreateCommand")
                        if err != nil {
                                return err
@@ -37,7 +36,7 @@ func NewAppCreateCommand() *cobra.Command {
                        return nil
                },
        }
-       cmd.Flags().StringP("packagefile", "f", "", "Application Package File to be onboarded to MEP")
+       cmd.Flags().StringP("packagefile", "f", "", "Application Package File to be onboarded.")
        cmd.MarkFlagRequired("packagefile")
        return cmd
 }