diff --git a/actions/create_user_action.go b/actions/create_user_action.go index 2d19fea..586de6b 100644 --- a/actions/create_user_action.go +++ b/actions/create_user_action.go @@ -18,7 +18,7 @@ func NewCreateUserAction(rootDir, name, email string, parts []string) *CreateUse } func (a *CreateUserAction) Execute() error { - name, email, parts := a.email, a.name, a.parts + name, email, parts := a.name, a.email, a.parts if len(parts) == 0 && name == "" { return nil diff --git a/commands/create_user_command.go b/commands/create_user_command.go index 9b8c0d3..96d4581 100644 --- a/commands/create_user_command.go +++ b/commands/create_user_command.go @@ -11,9 +11,11 @@ var CreateUserCommand = cli.Command{ Flags: []cli.Flag{ cli.StringFlag{ Name: "name", + Hidden: true, }, cli.StringFlag{ Name: "email", + Hidden: true, }, }, Action: func(c *cli.Context) error {