2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-24 12:11:52 +00:00

Use correct argument parsing

This commit is contained in:
Jarrod Johnson 2020-08-25 14:29:23 -04:00
parent ff0955d6be
commit 264b0be853

View File

@ -70,7 +70,7 @@ def main(args):
ap.add_argument('-m', '--maxnodes', help='Specifiy a maximum nodes to be deployed')
ap.add_argument('noderange', help='Set of nodes to deploy')
ap.add_argument('profile', nargs='?', help='Profile name to deploy')
args, extra = ap.parse_args(args)
args, extra = ap.parse_known_args(args)
if not args.network and not args.prepare and not args.clear:
sys.stderr.write('-n or -p is a required argument currently\n')
return 1