Fix login add always go interactive #221

Merged
techknowlogick merged 1 commits from 6543/tea:fix-login-add_220 into master 2020-10-05 18:34:12 +00:00

View File

@ -65,7 +65,7 @@ var CmdLoginAdd = cli.Command{
func runLoginAdd(ctx *cli.Context) error {
// if no args create login interactive
if ctx.Args().Len() == 0 {
if ctx.NumFlags() == 0 {
return interact.CreateLogin()
}