2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-28 20:39:40 +00:00

Error if user omits attributes for options

If user indicates manipulation of
attributes through -c, -p, or -e,
but none are specified, print an error
instead.
This commit is contained in:
Jarrod Johnson 2022-02-14 09:24:15 -05:00
parent 93a5496899
commit 3e6b67f9a7

View File

@ -105,7 +105,10 @@ if len(args) > 1:
requestargs=args[1:]
except:
pass
elif options.clear or options.environment or options.prompt:
sys.stderr.write('Attribute names required with specified options\n')
argparser.print_help()
exitcode = 400
if exitcode != 0:
sys.exit(exitcode)