From e7a81a8f8b54d1f7fdfde7e8abc9cb23b4b3ce57 Mon Sep 17 00:00:00 2001 From: Alex Quick Date: Sun, 21 May 2017 16:38:55 -0400 Subject: [PATCH] [config] error message when no key is given for config:get --- plugins/config/src/subcommands/get/get.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/config/src/subcommands/get/get.go b/plugins/config/src/subcommands/get/get.go index 1c6194edc..f9d4fa162 100644 --- a/plugins/config/src/subcommands/get/get.go +++ b/plugins/config/src/subcommands/get/get.go @@ -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 {