2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Have nodeeventlog print help on incorrect arguments

This commit is contained in:
Jarrod Johnson 2017-11-15 15:38:59 -05:00
parent 3e201a5f4f
commit 03293d88b0

View File

@ -45,9 +45,15 @@ except IndexError:
sys.exit(1)
client.check_globbing(noderange)
deletemode = False
if len(sys.argv) > 3:
argparser.print_help()
sys.exit(1)
if len(sys.argv) == 3:
if sys.argv[2] == 'clear':
deletemode = True
else:
argparser.print_help()
sys.exit(1)
session = client.Command()
exitcode = 0