Make auth parameters optional

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

No files matched your search

+1 -1
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)
}