Make auth parameters optional

This commit is contained in:
cnone 2019-05-19 22:03:26 +03:00
parent 748e4acfb6
commit aabf0843ab
2 changed files with 28 additions and 4 deletions

View file

@ -72,7 +72,7 @@ you want to change. Other options will remain unchanged.`,
auther, err = d.store.Auth.Get(set.AuthMethod)
checkErr(err)
// check if there are new flags for existing auth method
set.AuthMethod, auther = getAuthentication(flags, set)
set.AuthMethod, auther = getAuthentication(flags, set, auther)
err = d.store.Auth.Save(auther)
checkErr(err)
}