[config] error message when no key is given for config:get

This commit is contained in:
Alex Quick
2017-05-21 16:38:55 -04:00
parent 32414b343a
commit e7a81a8f8b

View File

@@ -21,6 +21,9 @@ func main() {
if len(keys) > 1 {
common.LogFail(fmt.Sprintf("Unexpected argument(s): %v", keys[1:]))
}
if len(keys) == 0 {
common.LogFail("Expected: key")
}
value := config.GetWithDefault(appName, keys[0], "")
if *quoted {