From 27294103cfe0199123f43216c6aa7f08cc16d043 Mon Sep 17 00:00:00 2001 From: Amanda Duffy Date: Thu, 20 Apr 2017 14:30:33 -0400 Subject: [PATCH] Complain if not enough args --- confluent_client/bin/nodeidentify | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_client/bin/nodeidentify b/confluent_client/bin/nodeidentify index 17c397d9..2cbf573f 100755 --- a/confluent_client/bin/nodeidentify +++ b/confluent_client/bin/nodeidentify @@ -37,6 +37,9 @@ except IndexError: identifystate = None if len(sys.argv) > 2: identifystate = sys.argv[2] +else: + argparser.print_help() + sys.exit(1) session = client.Command() exitcode = 0 sys.exit(