From 6dbf4f98cd7c46457bd4508c182bc13c733ca288 Mon Sep 17 00:00:00 2001 From: Rob Loranger Date: Thu, 8 Aug 2019 10:07:42 -0700 Subject: [PATCH] command auth should use user flag if the user flag is provided auth should attempt to authenticate with that user. --- commands/commands.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/commands.go b/commands/commands.go index f3dd32a..9419cc8 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -358,6 +358,9 @@ func CmdClaim(c *cli.Context) error { func CmdAuth(c *cli.Context) error { username := c.Args().Get(0) + if username == "" && c.GlobalIsSet("user") { + username = c.GlobalString("user") + } // Check configuration u, err := config.LoadUser(c) if err != nil {