From 01812bfafcb6f9cf5c46acf4759721acf3e89ea4 Mon Sep 17 00:00:00 2001 From: Andrey Sokolov Date: Thu, 2 Aug 2018 09:52:01 +0400 Subject: [PATCH] Fix misprint, hide flags --- actions/create_user_action.go | 2 +- commands/create_user_command.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 {