Skip to content

Commit

Permalink
NOISSUE - Update users create command for CLI (#1495)
Browse files Browse the repository at this point in the history
* NOISSUE - Update users create command for CLI

Signed-off-by: Burak Sekili <buraksekili@gmail.com>

* update if check

Signed-off-by: Burak Sekili <buraksekili@gmail.com>
  • Loading branch information
buraksekili authored Nov 8, 2021
1 parent dc93585 commit b570c38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ func NewUsersCmd() *cobra.Command {
Short: "create <username> <password> <user_auth_token>",
Long: `Creates new user`,
Run: func(cmd *cobra.Command, args []string) {
if len(args) != 3 {
if len(args) < 2 || len(args) > 3 {
logUsage(cmd.Short)
return
}
if len(args) == 2 {
args = append(args, "")
}

user := mfxsdk.User{
Email: args[0],
Expand Down

0 comments on commit b570c38

Please sign in to comment.