Add automatic selection message even when there is only one choice

pull/5700/head
tstromberg 2019-10-25 10:53:20 -07:00
parent 416f132ebb
commit e46502cfed
1 changed files with 2 additions and 0 deletions

View File

@ -549,6 +549,8 @@ func selectDriver(oldConfig *cfg.Config) string {
pick, alts := driver.Choose(options)
if len(options) > 1 {
out.T(out.Sparkle, `Automatically selected the '{{.driver}}' driver (alternates: {{.alternates}})`, out.V{"driver": pick.Name, "alternates": alts})
} else {
out.T(out.Sparkle, `Automatically selected the '{{.driver}}' driver`, out.V{"driver": pick.Name})
}
if pick.Name == "" {