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

This commit is contained in:
Alex Quick committed 2017-09-27 23:56:41 -04:00
1 parent 32414b343a
commit e7a81a8f8b
1 file changed
+3
@@ -21,6 +21,9 @@ func main() {
if len(keys) > 1 { if len(keys) > 1 {
common.LogFail(fmt.Sprintf("Unexpected argument(s): %v", 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], "") value := config.GetWithDefault(appName, keys[0], "")
if *quoted { if *quoted {