From 2c1e88d9279998eb391889a431c9ece914956323 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 17 Nov 2022 14:04:16 -0500 Subject: [PATCH] Provide usage when arguments omitted for nodegroupattrib --- confluent_client/bin/nodegroupattrib | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/confluent_client/bin/nodegroupattrib b/confluent_client/bin/nodegroupattrib index 42847ee4..b541244c 100755 --- a/confluent_client/bin/nodegroupattrib +++ b/confluent_client/bin/nodegroupattrib @@ -60,10 +60,12 @@ nodetype="nodegroups" try: nodegroups = args[0] + client.check_globbing(nodegroups) nodelist = '/{0}/{1}/'.format(nodetype,nodegroups) except IndexError: + argparser.print_help() + sys.exit(1) nodelist = '/nodegroups/' -client.check_globbing(nodegroups) session = client.Command() exitcode = 0