From d95305f95df84e31c465d8b404679d2b2447b68f Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 19 Apr 2019 16:46:22 +0900 Subject: [PATCH] Minor patch to change-role --- patches/change-role/change-role.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/patches/change-role/change-role.go b/patches/change-role/change-role.go index dc300227..5d4e80a2 100644 --- a/patches/change-role/change-role.go +++ b/patches/change-role/change-role.go @@ -20,6 +20,12 @@ func init() { func main() { defer arn.Node.Close() + // Show usage if needed + if userID == "" || role == "" { + flag.Usage() + return + } + // Get user user, err := arn.GetUser(userID) arn.PanicOnError(err)