2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-25 12:41:39 +00:00

Fix behavior for bad nodelicense arguments

Correctly show help and exit if unrecognized
parameter.
This commit is contained in:
Jarrod Johnson 2019-07-22 09:27:31 -04:00
parent 44929e7975
commit 00ce48b046

View File

@ -51,7 +51,8 @@ try:
elif args[1] == 'delete':
delete = args[2]
else:
components = ['all']
argparser.print_help()
sys.exit(1)
except IndexError:
argparser.print_help()
sys.exit(1)